-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when wrapping localized block in scope (Rails 3.1, Ruby 1.9.2) #30
Comments
Trying to workaround doing this:
also doesn't work, as i18n_routing doesn't add translations for the routes with optional locale param. |
I'm having the exact same issue with Rails 3.0.10 |
I'm also having this issue, rails 3.0.9 |
I'm facing this problem with rails 3.0.8... Any workaround? |
I ended up making my own localized_route helper, not using I18n_routing... |
I also gave up on i18n_routing. |
What do you use instead? |
I can't vouch for the quality of my solution but here it is anyway... |
For translated named routes I use a helper I made myself: Helper: https://gist.github.com/1435458 Basically I'm having base locales which don't have the locale in the url path but are set from user locales and/or domain. For resource routes I18n_routing works okay for me. |
Oh, and here the corresponding route translations for a locale: https://gist.github.com/1437306 |
I am having the same problem. en_cart GET /(:locale)/cart(.:format) orders#show {:i18n_locale=>"en", :locale=>/en-US|en-GB|de-DE/} It seems to be that the / is on the wrong side of the parenthesis. What does that mean? How can I fix it? |
+1 |
When I do
and then go to /fr-CH/inserieren
I get this error:
NoMethodError: undefined method `locale' for #ActionDispatch::Request:0x007fc222715bb0
The text was updated successfully, but these errors were encountered: