diff options
author | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-07-14 22:55:56 +0200 |
---|---|---|
committer | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-07-14 22:55:56 +0200 |
commit | 2c07baf284268883b5a287ff341d361815e5e4df (patch) | |
tree | acab0ba1b058851fd8fc590ccf7ee893cd7fe0db /guides | |
parent | 5ff00fcd3d3c4229246bf8ef749b6bc27a5cdb13 (diff) | |
download | rails-2c07baf284268883b5a287ff341d361815e5e4df.tar.gz rails-2c07baf284268883b5a287ff341d361815e5e4df.tar.bz2 rails-2c07baf284268883b5a287ff341d361815e5e4df.zip |
Using ruby 1.9 syntax [ci skip]
Diffstat (limited to 'guides')
-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`. |