Recommendation for Role Gem

Deadly 提交于 2019-12-24 09:29:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!