Which Rails plug in is best for role based permissions? (Please provide one nomination per answer)
-
09-06-2019 - |
Question
I need to add role based permissions to my Rails application, and am wondering what the best plugins out there are to look into. I am currently using the RESTful authentication plugin to handle user authentication. Why is the plug in you suggest better than the other ones out there?
Solution
I use, and really like, role_requirement: http://code.google.com/p/rolerequirement/
OTHER TIPS
Ive got to recommended easy_roles. Its super light weight, and doesn't require extra tables etc etc.
http://github.com/platform45/easy_roles
http://gemcutter.org/gems/easy_roles
But role authentication is definitely site dependent. Different role authorization plugins suit different sites.
If you dont feel easy_roles suits your needs, check out:
We've put role_requirement into Bort too, as it's probably the best solution out there at the moment.
I recommend Rails Authorization which will work with Restful Authentication quite nicely.