问题
I have successfully gotten authlogic working with rails 3 on windows 7 x64. But I'm lost as for what I should use for managing user privileges any suggestion? Thank you
回答1:
There are lots of options for authorization. My favorites in order are:
- Declarative Auth: http://github.com/stffn/declarative_authorization
- Ryan Bates' cancan: http://github.com/ryanb/cancan
- ACL9: http://github.com/be9/acl9
回答2:
Cancan http://github.com/ryanb/cancan is flexible enough to be easily extended with roles as Martin Rehfeld did with https://github.com/martinrehfeld/role_model. I've used this combination so often I created a gem to make working with these two gems simple https://github.com/james2m/canard
来源:https://stackoverflow.com/questions/4264110/recommendation-for-role-gem