aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2014-02-03 19:20:52 -0800
committerGuillermo Iguaran <guilleiguaran@gmail.com>2014-02-03 19:20:52 -0800
commita5dd1d249010694be1af905e5c1bc9ee05ca7119 (patch)
tree886f4a9ae658f26d9ea0816f59538ca7f6410ad5
parent28abd967fcc8544650c73910a8a0cbaa6dafc1f5 (diff)
parentb10f45ce7504448119c6fbd6c6d0b3d3e5e9d13c (diff)
downloadrails-a5dd1d249010694be1af905e5c1bc9ee05ca7119.tar.gz
rails-a5dd1d249010694be1af905e5c1bc9ee05ca7119.tar.bz2
rails-a5dd1d249010694be1af905e5c1bc9ee05ca7119.zip
Merge pull request #13936 from edogawaconan/fix_docs
Missing closing parenthesis. [ci skip]
-rw-r--r--guides/source/i18n.md2
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: