-
Notifications
You must be signed in to change notification settings - Fork 22
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
Padrino::Contrib::AutoLocale doesn't work with some controllers #5
Comments
Mmm nice catch ... any ideas to solve it? |
Instead of having the url and padrino_route_added method, can't you just change the request.path_info before being evaluated by the controllers? On line 36 adding something like request.path_info.sub(//#{I18n.locale}/, "/") |
@DAddYE thoughts? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have regex controllers it won't work because on line 43 will try to compare a regex against other regex.
https://github.com/padrino/padrino-contrib/blob/master/lib/padrino-contrib/auto_locale.rb
The text was updated successfully, but these errors were encountered: