Rails ACL plugin that works with devise/warden?
As title, warden is very pluggabl开发者_如何学Goe, I wonder if there is anything works with warden/devise?
I use http://github.com/ryanb/cancan with Devise, its great and requires very little setup, you only have to define the abilitys as CanCan defaults to using current_user for the logged in user, which devise provides.
I used acl9 with Devise. https://github.com/be9/acl9
I needed to dynamically grant authorization at the object level, which I don't think you can do with CanCan.
I've also used CanCan with Devise. It requires very easy to setup and all your authorization logic resides in a single file, in that way its very modularized.
You could try this, which might be able to work alongside:
http://railscasts.com/episodes/188-declarative-authorization
精彩评论