diff options
author | edogawaconan <me@myconan.net> | 2014-02-04 11:46:59 +0900 |
---|---|---|
committer | edogawaconan <me@myconan.net> | 2014-02-04 11:46:59 +0900 |
commit | b10f45ce7504448119c6fbd6c6d0b3d3e5e9d13c (patch) | |
tree | 886f4a9ae658f26d9ea0816f59538ca7f6410ad5 /guides/source | |
parent | 28abd967fcc8544650c73910a8a0cbaa6dafc1f5 (diff) | |
download | rails-b10f45ce7504448119c6fbd6c6d0b3d3e5e9d13c.tar.gz rails-b10f45ce7504448119c6fbd6c6d0b3d3e5e9d13c.tar.bz2 rails-b10f45ce7504448119c6fbd6c6d0b3d3e5e9d13c.zip |
Missing closing parenthesis.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/i18n.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index 8dfb17a681..d72717fa3b 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -214,7 +214,7 @@ This approach has almost the same set of advantages as setting the locale from t Getting the locale from `params` and setting it accordingly is not hard; including it in every URL and thus **passing it through the requests** is. To include an explicit option in every URL (e.g. `link_to( books_url(locale: I18n.locale))`) would be tedious and probably impossible, of course. -Rails contains infrastructure for "centralizing dynamic decisions about the URLs" in its [`ApplicationController#default_url_options`](http://api.rubyonrails.org/classes/ActionController/Base.html#M000515, which is useful precisely in this scenario: it enables us to set "defaults" for [`url_for`](http://api.rubyonrails.org/classes/ActionController/Base.html#M000503) and helper methods dependent on it (by implementing/overriding this method). +Rails contains infrastructure for "centralizing dynamic decisions about the URLs" in its [`ApplicationController#default_url_options`](http://api.rubyonrails.org/classes/ActionController/Base.html#M000515), which is useful precisely in this scenario: it enables us to set "defaults" for [`url_for`](http://api.rubyonrails.org/classes/ActionController/Base.html#M000503) and helper methods dependent on it (by implementing/overriding this method). We can include something like this in our `ApplicationController` then: |