diff options
author | Jaime Iniesta <jaimeiniesta@gmail.com> | 2010-11-17 09:24:47 +0100 |
---|---|---|
committer | Jaime Iniesta <jaimeiniesta@gmail.com> | 2010-11-17 09:24:47 +0100 |
commit | 648568df1a61cf335d8b235487617777dcdea117 (patch) | |
tree | 4160c5a105feefd49de0fd0f2012f7023eb7f380 | |
parent | 8f8abbbf7ae21f5bb88c2d43388532bcfe33ca94 (diff) | |
download | rails-648568df1a61cf335d8b235487617777dcdea117.tar.gz rails-648568df1a61cf335d8b235487617777dcdea117.tar.bz2 rails-648568df1a61cf335d8b235487617777dcdea117.zip |
i18n guide: this is not longer a problem
-rw-r--r-- | railties/guides/source/i18n.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/i18n.textile b/railties/guides/source/i18n.textile index 3e344c32b3..b42942bb63 100644 --- a/railties/guides/source/i18n.textile +++ b/railties/guides/source/i18n.textile @@ -253,7 +253,7 @@ match '/:locale' => 'dashboard#index' Do take special care about the *order of your routes*, so this route declaration does not "eat" other ones. (You may want to add it directly before the +root :to+ declaration.) -IMPORTANT: This solution has currently one rather big *downside*. Due to the _default_url_options_ implementation, you have to pass the +:id+ option explicitly, like this: +link_to 'Show', book_url(:id => book)+ and not depend on Rails' magic in code like +link_to 'Show', book+. If this should be a problem, have a look at two plugins which simplify work with routes in this way: Sven Fuchs's "routing_filter":http://github.com/svenfuchs/routing-filter/tree/master and Raul Murciano's "translate_routes":http://github.com/raul/translate_routes/tree/master. +NOTE: Have a look at two plugins which simplify work with routes in this way: Sven Fuchs's "routing_filter":http://github.com/svenfuchs/routing-filter/tree/master and Raul Murciano's "translate_routes":http://github.com/raul/translate_routes/tree/master. h4. Setting the Locale from the Client Supplied Information |