diff options
author | Derek Prior <derekprior@gmail.com> | 2015-04-24 11:35:21 -0400 |
---|---|---|
committer | Derek Prior <derekprior@gmail.com> | 2015-04-24 11:45:35 -0400 |
commit | 6ad5e7ebeb9e670eed96381800f23c4d0c8594bd (patch) | |
tree | 609cc7020864820044a71cf58adbbf114c29b515 /actionview/lib/action_view/buffers.rb | |
parent | 55d9e494e896e7b041dc7c18df197d53690642b5 (diff) | |
download | rails-6ad5e7ebeb9e670eed96381800f23c4d0c8594bd.tar.gz rails-6ad5e7ebeb9e670eed96381800f23c4d0c8594bd.tar.bz2 rails-6ad5e7ebeb9e670eed96381800f23c4d0c8594bd.zip |
Correct translate helper docs [ci skip]
The documentation previously stated that calling `translate(".foo")` was
equivalent to calling `I18n.translate("people.index.foo")` which is
incorrect due to the various other functions of the `translate` view
helper. This has been fixed.
Additionally, a note about forcing the view helper to re-raise
exceptions was added to the section detailing the handling of missing
translations.
Other cleanup includes:
* Consistent formatting of code
* Stop indenting bulleted list as a code sample
* Tighten some of the language
* Wrap at 80 characters.
Diffstat (limited to 'actionview/lib/action_view/buffers.rb')
0 files changed, 0 insertions, 0 deletions