Come up with a CanCan app and ActiveAdmin on Rails

I keep getting an error trying to use ActiveAdmin in my Rails application using Devise and CanCan. Error:

CanCan :: AuthorizationNotPerformed in Admin :: FindingsController # index

This action failed with check_authorization because it is not authorize_resource . Add skip_authorization_check to get around this check.

I watched a lot and cannot find a solution that seems to work.

+4
source share
1 answer

ActiveAdmin authorizes the request differently, you cannot use check_authorization with ActiveAdmin.

0
source

Source: https://habr.com/ru/post/1446705/


All Articles