aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-06-24 00:27:53 +0900
committeryui-knk <spiketeika@gmail.com>2015-06-24 00:27:53 +0900
commit7a74d81916851d0e5bda5312ffd9936b1b119765 (patch)
treeb5d9ac52daae0273f2836a830a763c933098c9fe /guides/source
parentde0a2a49a8a9f7176751093d31c74f4df858abde (diff)
downloadrails-7a74d81916851d0e5bda5312ffd9936b1b119765.tar.gz
rails-7a74d81916851d0e5bda5312ffd9936b1b119765.tar.bz2
rails-7a74d81916851d0e5bda5312ffd9936b1b119765.zip
[ci skip] Make clear what `this method` is
In this sentence, there are three candidates of `this method` * default_url_options * url_for * helper method(s) so make it clear.
Diffstat (limited to 'guides/source')
-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 31682464ee..272a0e3623 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -210,7 +210,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/ActionDispatch/Routing/Mapper/Base.html#method-i-default_url_options), which is useful precisely in this scenario: it enables us to set "defaults" for [`url_for`](http://api.rubyonrails.org/classes/ActionDispatch/Routing/UrlFor.html#method-i-url_for) 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/ActionDispatch/Routing/Mapper/Base.html#method-i-default_url_options), which is useful precisely in this scenario: it enables us to set "defaults" for [`url_for`](http://api.rubyonrails.org/classes/ActionDispatch/Routing/UrlFor.html#method-i-url_for) and helper methods dependent on it (by implementing/overriding `default_url_options`).
We can include something like this in our `ApplicationController` then: