diff options
author | Paul Nikitochkin <paul.nikitochkin@gmail.com> | 2013-09-06 21:41:04 +0300 |
---|---|---|
committer | Paul Nikitochkin <paul.nikitochkin@gmail.com> | 2013-09-06 21:42:29 +0300 |
commit | 2c8bc2cdcdb7b144b7a583d24922fd8064bcff3d (patch) | |
tree | 279e76293ba90dcc46e7716ecf78fbc1df221e79 /guides/source/debugging_rails_applications.md | |
parent | 97a19c6b4b71d1e12d62d880ec8c8eed357b3d3c (diff) | |
download | rails-2c8bc2cdcdb7b144b7a583d24922fd8064bcff3d.tar.gz rails-2c8bc2cdcdb7b144b7a583d24922fd8064bcff3d.tar.bz2 rails-2c8bc2cdcdb7b144b7a583d24922fd8064bcff3d.zip |
Use Ruby on Rails Coding Conventions for code examples in the guides
* Indent after private/protected
* Ruby >= 1.9 syntax for hashes
* Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks.
[ci skip]
Diffstat (limited to 'guides/source/debugging_rails_applications.md')
-rw-r--r-- | guides/source/debugging_rails_applications.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md index 14d65e4747..3099ccae97 100644 --- a/guides/source/debugging_rails_applications.md +++ b/guides/source/debugging_rails_applications.md @@ -386,7 +386,7 @@ Finally, to see where you are in the code again you can type `list=` 7 8 respond_to do |format| 9 format.html # index.html.erb - 10 format.json { render :json => @posts } + 10 format.json { render json: @posts } ``` ### The Context |