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
best regards
matthias
On 14 Jan., 22:48, Jimmy Palmer
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---