[英]Devise, CanCan and ActiveAdmin on Rails application
I keep getting an error trying to use ActiveAdmin in my Rails application with Devise and CanCan. 我在使用Devise和CanCan的Rails应用程序中尝试使用ActiveAdmin时遇到错误。 The error is: 错误是:
CanCan::AuthorizationNotPerformed in Admin::FindingsController#index CanCan :: AuthorizationNotPerformed在Admin :: FindingsController#index中
This action failed the check_authorization
because it does not authorize_resource
. 此操作未通过check_authorization
因为它不是authorize_resource
。 Add skip_authorization_check
to bypass this check. 添加skip_authorization_check
以绕过此检查。
I've looked extensively and cannot find a solution that seems to work. 我看起来很广泛,找不到似乎有效的解决方案。
ActiveAdmin以不同的方式授权请求,您不能将check_authorization
与ActiveAdmin check_authorization
使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.