Multiple controllers with a single model
Posted
by Eric K
on Stack Overflow
See other posts from Stack Overflow
or by Eric K
Published on 2010-04-23T16:06:07Z
Indexed on
2010/04/23
16:13 UTC
Read the original article
Hit count: 142
ruby-on-rails
I'm setting up a directory application for which I need to have two separate interfaces for the same Users table. Basically, administrators use the Users controller and views to list, edit, and add users, while non-admins need a separate interface which lists users in a completely different manner. To do this, would I be able to just set up another controller with different views but which accesses the Users model?
Sorry if this is a simple question, but I've had a hard time finding how to do this.
© Stack Overflow or respective owner