I have a rails 4.0.0 app running with friendly_id and globalize (even if freindly_id and globalize might not matter for this question).
Part of my routes.rb is:
scope "(:locale)", locale: /en|de/ do
resources :mainclasses, :path => :types
end
I now would like to have the ":path => :types" just for the english version (creating a url like www.website.com/types/etc, the german version should be ":path => :typen" (creating www.website.com/de/typen/etc).
Is there a way to change the path depending on the current locale?