问题
I am developing an app using Devise, Rolify and CanCan. Can I shift it completely to be administered by ActiveAdmin. Is there any documentation for that?
回答1:
I know it's been a while since the question was asked... but as I found it while doing a google search, I think I can post an answer to help others.
So! There is a documentation to make ActiveAdmin use Cancan for its authentication and authorization system. Here is a very simple how to add a CancanAdapter in ActiveAdmin
In fact they even explain how to create your own Authorization Adapter.
And yeah, Rolify does have a good documentation on how to make it work with Devise + Cancan
Thanks to those two documentations every Rails developer should be able to make all the pieces fit together. I'll be glad to help anyone in trouble by providing more information if needed.
来源:https://stackoverflow.com/questions/11916768/devise-rolify-and-cancan-to-activeadmin