I am making a RoR site that is delivered in several languages, and want to change a part of the url by its language.
ex.
I know I can do this via the route.rb
map.locale ':lang/index.html'
and designate the language when calling this in view. However, there is an exception to this, when in the default language of the site, I want the url to be without the language identifier,
as so.
Currently I cannot find a way to git rid of the / after the language identifier,
is there a better way to do this?