I\'m trying to setup a routing system for my rails app that allows for an optional route (/:locale) to be allowed to the base of the website.
So more or less:
Use scope '(:locale)' do...end. You can see an example from Agile Web Development with Rails here:
scope '(:locale)' do
end
http://intertwingly.net/projects/AWDwR4/checkdepot-30/section-15.1.html