which is the most popular Ruby on Rails AUTHORIZATION gem/plugin at the moment? [closed]

删除回忆录丶 提交于 2019-12-04 10:52:01

问题


Which is the most popular Ruby on Rails AUTHORIZATION gem/plugin at the moment?

(I am using AuthLogic for authentication by the way)

Thanks


回答1:


I like Declarative Authorization There is a pretty good railscast for it as well




回答2:


Not sure about the most popular solution, but Ryan Bates (of RailsCasts fame) recently released a new authorization plugin called CanCan that looks pretty easy to use and apparently integrates well with AuthLogic. Might be worth a look.

Declarative Authorization looks quite nice as well, though I haven't used it.




回答3:


Have a look @ Ruby-Toolbox - ruby-toolbox.com.

Specifically to answer your question, declarative_authorization is currently the most popular.

http://www.ruby-toolbox.com/categories/rails_authorization.html

They are listed in order of popularity. Have a glance at the right column "Popularity ranks" for a quick visual view.




回答4:


I'm looking to pick one of these two solutions. The main difference is the authors implementations of the same logic. DA is expressed with a DSL (like Rake) using roles, and CanCan is expressed using native Ruby includes and class methods.

I'm going to run with CanCan for now. It seems more natural and easier to work with since I use modules over Rake-style DSLs.

Ryan Bates, the author of CanCan posted this tweet, "CanCan vs Declarative Authorization...": http://twitter.com/rbates/status/5789648368

which linked to both implementations side-by-side: http://gist.github.com/236709



来源:https://stackoverflow.com/questions/1895433/which-is-the-most-popular-ruby-on-rails-authorization-gem-plugin-at-the-moment

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