Dynamic routes with Rails 3
问题 I have a task to develop a rails application following the model for routing. I need to have PageController and Page model. Page urls must be like /contacts, /shipping, /some_page . Also i need have CatalogController and Category model. Categories urls must be like /laptops, /smartphones/android . And it will be ProductsController and Product model, urls of products must be line /laptops/toshiba_sattelite_l605 , /smartphones/android/htc_magic I understand that this problem can be solved by