Open phlegx opened 8 years ago
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 _routetranslator where I can do:
Rails.application.routes.draw do localized do get '/home', ... get '/help', ... end end
How can I do that?
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 _routetranslator where I can do:
How can I do that?