aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/i18n.textile
diff options
context:
space:
mode:
authorPhilipp Franke <franke.philipp@gmail.com>2012-07-08 20:49:08 +0200
committerPhilipp Franke <franke.philipp@gmail.com>2012-07-08 21:12:02 +0200
commit359af59cb3ab8c29ec2c17447fa2b7fd9aee8915 (patch)
tree12ab2ceaff754bfded9750ea348c3912b853de99 /guides/source/i18n.textile
parent266ccc3d341c91240a1f9f8b87953b8ba6a107d6 (diff)
downloadrails-359af59cb3ab8c29ec2c17447fa2b7fd9aee8915.tar.gz
rails-359af59cb3ab8c29ec2c17447fa2b7fd9aee8915.tar.bz2
rails-359af59cb3ab8c29ec2c17447fa2b7fd9aee8915.zip
Fix broken links in 2.2 release notes, i18n, debugging, security, 2.3 release notes, plugins
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