Skip to content

Commit

Permalink
"denoted" instead of "donated"
Browse files Browse the repository at this point in the history
"parentheses" instead of "use brackets"
  • Loading branch information
capps authored and vijaydev committed Nov 18, 2011
1 parent b7fe7c3 commit ae4974a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/i18n.textile
Expand Up @@ -231,7 +231,7 @@ end

Now, when you call the +books_path+ method you should get +"/en/books"+ (for the default locale). An URL like +http://localhost:3001/nl/books+ should load the Netherlands locale, then, and following calls to +books_path+ should return +"/nl/books"+ (because the locale changed).

If you don't want to force the use of a locale in your routes you can use an optional path scope (donated by the use brackets) like so:
If you don't want to force the use of a locale in your routes you can use an optional path scope (denoted by the parentheses) like so:

<ruby>
# config/routes.rb
Expand Down

0 comments on commit ae4974a

Please sign in to comment.