Completely custom routes
In a recent project for the New Zealand business community, we were required to have some really custom routes. An example of such routes would be geographical routes, e.g. /china, or /china/beijing.
We could try something like this:
map.country ‘:country’, :controller => :locations, :action => :show,
:country => Regexp.new(Country.all.map(&:name).join(‘|’))
map.region ‘:country/:region’, :controller => :locations, :action => :show,
[...]
