What do you recommend for displaying URLs and handling views in Rails for cities, regions, countries?
i.e:
/us/ca/San-Fransisco
/countries/us/regions/ca/cities/San-Fransisco
Should be able to: List all countries, list all regions within country and list all cities within a region and country.
Where would you put code for displaying all regions in a country?:
/us/regions/
/us
Should the code be in the region (action show) or country (action index) controller?
Agree with Arne. I don’t see any problem with the first variant.
As for the second question, you better get the list of regions in the RegionsController.
Say you want to
then you should route it to