1-st level routes for multiple resources in Rails
- by Leonid Shevtsov
I have a simple SEO task. There's a City model and a Brand model, and I have to create 1st-level URLs for both (e.g. site.com/honda and site.com/boston).
What's the preferred routing/controller combination to do this in Rails? I can only think of
map.connect '/:id', :controller => 'catchall', :action => 'index'
class CatchallController…