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?
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 P. [email protected]