Results 1 to 3 of 3
Thread: Rails: regarding controllers
Feb 23, 2006, 20:15 #1
- Join Date
- Mar 2004
- Toronto, Canada
- 0 Post(s)
- 0 Thread(s)
Rails: regarding controllers
Assume I have a controller called admin in app/controllers as well as three model classes in app/models: product, category, warehouse.
How exactly do I use the admin controller to produce this kind of structure:
http://localhost:3000/admin/product/ #lists products http://localhost:3000/admin/product/edit/1 http://localhost:3000/admin/category/new http://localhost:3000/admin/warehouse/show/16
http://localhost:3000/admin/edit/1 http://localhost:3000/admin/list http://localhost:3000/admin/show/16
Hope my explanation makes sense. Any help appreciated.