Desired url, a geo example:
domain.com/france/ # Would show all things to do in France
domain.com/france/ile-de-france/ # Would show all things to do in Ile-de-France
domain.com/france/ile-de-france/paris # Would show all things to do in paris
This geographical url writing is quite easy of course with rails routing. Problem is that its not just geographical. Also books (:genres/:authors/:books) for instance. So i can't use the easy :country/:region/:city thing, but i need something more dynamic.
I'm using awesome_nested_sets to do the hierarchy.
I cant use the standard slugs approach because country/region/city, as country/region/city are not unique in my real app. So slug wouldn't work right?
Any ideas for how to route this? Thanks in advance