aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/i18n.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-07-08 12:39:15 -0700
committerXavier Noria <fxn@hashref.com>2012-07-08 12:39:15 -0700
commit3dc54d7e906ba356ece3956e168db3db80664877 (patch)
tree7cb3b54fae2986fb2f574b82f990fae4a832c574 /guides/source/i18n.textile
parentbbc08c759c13d654621c1eb0659f3bdd6a66dfd5 (diff)
parent359af59cb3ab8c29ec2c17447fa2b7fd9aee8915 (diff)
downloadrails-3dc54d7e906ba356ece3956e168db3db80664877.tar.gz
rails-3dc54d7e906ba356ece3956e168db3db80664877.tar.bz2
rails-3dc54d7e906ba356ece3956e168db3db80664877.zip
Merge pull request #7004 from philiqq/master
[Guide] Fix broken links
Diffstat (limited to 'guides/source/i18n.textile')
-rw-r--r--guides/source/i18n.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.textile b/guides/source/i18n.textile
index ee7176a6c8..8ad6ee4b73 100644
--- a/guides/source/i18n.textile
+++ b/guides/source/i18n.textile
@@ -220,7 +220,7 @@ Every helper method dependent on +url_for+ (e.g. helpers for named routes like +
You may be satisfied with this. It does impact the readability of URLs, though, when the locale "hangs" at the end of every URL in your application. Moreover, from the architectural standpoint, locale is usually hierarchically above the other parts of the application domain: and URLs should reflect this.
-You probably want URLs to look like this: +www.example.com/en/books+ (which loads the English locale) and +www.example.com/nl/books+ (which loads the Dutch locale). This is achievable with the "over-riding +default_url_options+" strategy from above: you just have to set up your routes with "+path_prefix+":http://api.rubyonrails.org/classes/ActionController/Resources.html#M000354 option in this way:
+You probably want URLs to look like this: +www.example.com/en/books+ (which loads the English locale) and +www.example.com/nl/books+ (which loads the Dutch locale). This is achievable with the "over-riding +default_url_options+" strategy from above: you just have to set up your routes with "+scoping+":http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Scoping.html option in this way:
<ruby>
# config/routes.rb