简体   繁体   English

将Devise,Rolify和Cancan设计为ActiveAdmin

[英]Devise, Rolify and Cancan to ActiveAdmin

I am developing an app using Devise, Rolify and CanCan. 我正在使用Devise,Rolify和CanCan开发应用程序。 Can I shift it completely to be administered by ActiveAdmin. 我可以将其完全转移到由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. 有一个文档可以让ActiveAdmin将Cancan用于其身份验证和授权系统。 Here is a very simple how to add a CancanAdapter in ActiveAdmin 这是一个非常简单的如何在ActiveAdmin中添加CancanAdapter

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 是的,Rolify确实有很好的文档说明如何使它与Devise + Cancan一起使用

Thanks to those two documentations every Rails developer should be able to make all the pieces fit together. 感谢这两个文档,每个Rails开发人员都应该能够将所有部分组合在一起。 I'll be glad to help anyone in trouble by providing more information if needed. 如果需要,我会很乐意帮助遇到麻烦的人提供更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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