views:

896

answers:

4

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?

+4  A: 

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.

http://wiki.github.com/be9/acl9/tutorial-securing-a-controller

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

Konstantinos
superawesome! cheers
sfusion
+1  A: 

Hey,

I currently use authlogic for my authentication, with the basic role requirement stuff I posted above..

Edit:

This has been turned into a gem:

http://gemcutter.org/gems/easy_roles

Ryan
A: 

I'm using authlogic and declarative_authorization in my Rails apps.

Look at my rails app template: http://wiki.github.com/stffn/declarative_authorization/

nanda