Ask A Question

Notifications

You’re not receiving notifications from this thread.

Using Pundit and ActiveAdmin

Maksk89 asked in Rails

Hello, I'm using pundit with active admin and getting this error message

Pundit::NotDefinedError at /admin
unable to find scope Admin::AdminUserPolicy::Scope for [:admin, AdminUser(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, created_at: datetime, updated_at: datetime)]

What do I need to do to solve this situation ?

Thanks for your help!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.