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:
Code:
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
... rather than just simply:

Code:
http://localhost:3000/admin/edit/1
http://localhost:3000/admin/list
http://localhost:3000/admin/show/16
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.