diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2013-07-21 18:08:43 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2013-07-21 18:08:43 +0530 |
commit | 3613235cc3d7d87ce02e51a80f67706c0853b524 (patch) | |
tree | 0385563aabc4df9f2435b1ca08d68b88888eef7d /guides/source/debugging_rails_applications.md | |
parent | 9dc8aef084fc5ae7e3a396dd098d89da93d06fda (diff) | |
parent | 760662de868c0311f2e40a5e6f8982a521a3d990 (diff) | |
download | rails-3613235cc3d7d87ce02e51a80f67706c0853b524.tar.gz rails-3613235cc3d7d87ce02e51a80f67706c0853b524.tar.bz2 rails-3613235cc3d7d87ce02e51a80f67706c0853b524.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'guides/source/debugging_rails_applications.md')
-rw-r--r-- | guides/source/debugging_rails_applications.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md index 98f91c1ac6..77a2dd4b18 100644 --- a/guides/source/debugging_rails_applications.md +++ b/guides/source/debugging_rails_applications.md @@ -301,7 +301,7 @@ This command shows you where you are in the code by printing 10 lines centered a 7 8 respond_to do |format| 9 format.html # index.html.erb - 10 format.json { render :json => @posts } + 10 format.json { render json: @posts } ``` If you repeat the `list` command, this time using just `l`, the next ten lines of the file will be printed out. @@ -337,7 +337,7 @@ On the other hand, to see the previous ten lines you should type `list-` (or `l- 7 8 respond_to do |format| 9 format.html # index.html.erb - 10 format.json { render :json => @posts } + 10 format.json { render json: @posts } ``` This way you can move inside the file, being able to see the code above and over the line you added the `debugger`. |