-
Notifications
You must be signed in to change notification settings - Fork 143
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
Passing locale as a symbol should work. #207
Comments
Hi! Thanks for being part of the route_translator community.
Yes, it should, but it doesn't. :) This is also documented in our wiki here: https://github.com/enriclluelles/route_translator/wiki/Generating-translated-URLs The following considerations still apply #192 (comment) Closing here as a duplicate of #192 |
Thank you for the quick response, I will take a look. A quick fix would not to be simply always calling "to_s" internally so the symbol gets converted to a string? |
No, sorry, this is not that simple. I've tried without success. I will add a note here too: https://github.com/enriclluelles/route_translator#testing The test example uses a string, but it does not specify that it is intended |
Rails : 5.0.7.1
route_translator: 7.1.2
ruby : 2.4.9
Upgrading from Rails 4 to Rails 5 have broken all my tests using localized paths.
Behavior
Exception
Temporary Fix (adding .to_s)
The text was updated successfully, but these errors were encountered: