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 using URLs like
/page/shipping
/catalog/smartphones/android
But the customer does not want to see the insertion of "/page
" or "/catalog
" in the URL.
Please tell me the direction for solving this problem.
Sorry for my bad English.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…