We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I want to use filter in routes.rb in a block, so that I can filter only for some routes the locale:
routes.rb
Rails.application.routes.draw do filter :locale do get '/home', ... get '/help', ... end end
So, the idea comes from gem route_translator where I can do:
Rails.application.routes.draw do localized do get '/home', ... get '/help', ... end end
How can I do that?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! I want to use filter in
routes.rb
in a block, so that I can filter only for some routes the locale:So, the idea comes from gem route_translator where I can do:
How can I do that?
The text was updated successfully, but these errors were encountered: