Search code examples
ruby-on-railsauthenticationauthorizationrolesauthlogic

Authlogic and Roles


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

    http://github.com/be9/acl9/tree/master