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:
... rather than just simply:
http://localhost:3000/admin/product/ #lists products
In my first example, are product, category and warehouse controllers as well? Or are they actions of the admin controller? If they are actions, how do I go about creating the CRUD interface for each of them?
Hope my explanation makes sense. Any help appreciated.