简体   繁体   中英

Devise, Rolify and Cancan to ActiveAdmin

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM