Devise, Rolify and Cancan to ActiveAdmin

半城伤御伤魂 提交于 2019-12-13 12:27:57

问题


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

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