# Restful authentication - administrative users?

**URL:** <https://www.ruby-forum.com/t/restful-authentication-administrative-users/126037>\
**Category:** Rails\
**Created:** [January 14, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/restful-authentication-administrative-users/126037 "2008-01-14T22:48:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [January 14, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/restful-authentication-administrative-users/126037/1 "2008-01-14T22:48:35Z")

</div>

I’m using restful authentication to do my user management, but I also  
need an administrative user. Some would just use an admin\_fl to  
distinguish between normal users and admin users, but I wonder if this  
is a good practice. Since these two types of users will be taking very  
different actions. Do I need to create another form of security for the  
admin user or just use restful authentication plugin?

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [January 14, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/restful-authentication-administrative-users/126037/2 "2008-01-14T23:02:51Z")

</div>

hello jimmy,

a big advantage is to use controller namespaces like this  
script/generate controller Admin::Login

this command creates a few files dedicated to the admin namespace,  
so youve got a smart separation.

routes:

map.namespace(:admin) do |admin|  
admin.resources :login  
end

call the url [http://localhost:3000/admin/login](http://localhost:3000/admin/login)

best regards  
matthias

On 14 Jan., 22:48, Jimmy P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
