ChaosKnight,
Generally, separate admin controllers are not my preference and don''t
seem
to be a clean restful representation of the problem. I prefer having one
set of controllers for the entities in the system with some actions only
allowed to admins. Also, some actions will work differently for admin
users. Also, some information or functionality in the views will only be
available to admins. Sometimes admins need views that show information from
a broad set of entities in the system. In this case, I would create an
admin controller to handle those views.
Anthony Crumley
http://commonthread.com
On Sun, Apr 11, 2010 at 7:47 AM, ChaosKnight
<rvanhoepen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi everyone, I was wondering about an admin section for websites,
> would I be better off to separate the admin controllers from the
> public exposed controllers? At the moment I do this via a namespace,
> but to me it seems more like a duplication...
>
> Is this part of being RESTful?
>
> Can you please tell me how you made the admin sections in your web
> apps?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.