# Administration

**URL:** <https://www.ruby-forum.com/t/administration/186684>\
**Category:** Rails\
**Created:** [April 11, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/administration/186684 "2010-04-11T14:48:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChaosKnight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/aca169/32.png) [@ChaosKnight](https://www.ruby-forum.com/u/ChaosKnight)\
**Post date:** [April 11, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/administration/186684/1 "2010-04-11T14:48:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChaosKnight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/aca169/32.png) [@ChaosKnight](https://www.ruby-forum.com/u/ChaosKnight)\
**Post date:** [April 12, 2010, 11:46pm UTC](https://www.ruby-forum.com/t/administration/186684/2 "2010-04-12T23:46:00Z")

</div>

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 C.

> **[Commonthread](https://commonthread.com)**
>
> Instantly connect and build rapport with anyone you meet, in person or online.
