Authlogic and Roles [closed]
-
22-07-2019 - |
Question
I am developing an application which users authlogic for authentication.
I would like some way of giving users roles so that I can authorize certain actions to certain roles.
Is there an 'out of the box' gem or plugin that suits this or would I be better build it from scratch.
What would you recommend?
Solution
ACL9 is what i currently use for the authorization, authlogic is the best match so i think you will do fine with it.
Check out the following 2 links for instructions.
https://github.com/be9/acl9/wiki/Tutorial:-securing-a-controller
OTHER TIPS
I'm using authlogic and declarative_authorization in my Rails apps.
Look at my rails app template: http://wiki.github.com/stffn/declarative_authorization/
I currently use authlogic for my authentication, with the basic role requirement stuff I posted above..
Edit:
This has been turned into a gem: