Building Admin Areas in Rails - General Questions
Posted
by Carb
on Stack Overflow
See other posts from Stack Overflow
or by Carb
Published on 2010-04-07T21:20:43Z
Indexed on
2010/04/07
21:23 UTC
Read the original article
Hit count: 209
What is the typical format/structure for creating an administrative area in a Rails application?
Specifically I am stumped in the vicinity of these topics:
- How do you deal with situations where a model's resources are available to both the public and the Admin? i.e. A User model where anyone can create users, login, etc but only the admin can view users, delete/update them, etc.
- What is the proper convention for routing?
- How does one structure controllers?
- Are duplicate controllers considered OK? i.e. An admin version and the non-admin version?
Thank you!
© Stack Overflow or respective owner