You’ll have to forgive me … I’ve been toying with rails for about a
and although I don’t feel completely lost there’s still a lot that I
understand. Here goes.
Assume I have a controller called admin in app/controllers as well as
model classes in app/models: product, category, warehouse. How exactly
use the admin controller to produce this kind of structure?
… rather than just simply:
Keep in mind that “admin” is password protected and public content is
accessed like so:
In my first example, are product, category and warehouse controllers as
well? Or are they actions of the admin controller? If they are actions,
do I go about creating the CRUD interface that reacts to each action? In
other words, how do i attach edit, show, list etc actions for each?
Hope my explanation makes sense. Any help appreciated.