Skip to content
Browse files

i18n guide: this is not longer a problem

  • Loading branch information...
1 parent cbea139 commit f044d38192dab10ccdf6556e2bb3b9c90a912fbe @jaimeiniesta jaimeiniesta committed with fxn Nov 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/i18n.textile
View
2 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

0 comments on commit f044d38

Please sign in to comment.
Something went wrong with that request. Please try again.