将Devise,Rolify和Cancan设置为ActiveAdmin [英] Devise, Rolify and Cancan to ActiveAdmin

查看:326
本文介绍了将Devise,Rolify和Cancan设置为ActiveAdmin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Devise,Rolify和CanCan开发一个应用程序。我可以将其完全转移到ActiveAdmin管理。是否有任何文件?

解决方案

我知道这是一段时间,因为我问它在做一个谷歌搜索,我想我可以发布一个答案来帮助别人。



所以!有一个文档,使ActiveAdmin使用Cancan进行身份验证和授权系统。以下是非常简单的如何在ActiveAdmin中添加CancanAdapter



实际上,他们甚至说明如何创建自己的授权适配器。



是的,Rolify确实有一个好的有关如何使用Devise + Cancan的文档



感谢这两个文档,每个Rails开发人员应该能够使所有的部分合在一起。如有需要,提供更多信息,我乐意帮助任何人。


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.

这篇关于将Devise,Rolify和Cancan设置为ActiveAdmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆