-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Hello!
I'm running into this issue:
undefined method `authorize!' for #<Admin::UsersController:0x00007fa0f494f010>
Did you mean? authorize
This issue occurs whenever I include actions_col
in my datatable block. If I take this out, the table will render.
In effective_datatables.rb
, I've tried a number of things:
config.authorization_method = :my_authorization_method
def my_authorization_method(resource, action)
true
end
and
config.authorization_method = true
Nothing seems to be working.
I don't have any authorization gems in my app right now (ie, I don't have Pundit, cancan, etc).
I'm using Rails 5.2, Ruby 2.5.3. Here are my effective versions:
effective_bootstrap (0.6.23)
bootstrap (>= 4.0.0)
coffee-rails
inline_svg
jquery-rails
rails (>= 4.0.0)
sass
effective_datatables (4.8.1)
coffee-rails
effective_bootstrap
effective_resources
rails (>= 3.2.0)
sass
effective_resources (1.4.10)
rails (>= 4.0.0)
Feeling frustrated that I can't figure this out. Everything seems like such a breeze with this gem!
Any thoughts on what could be going on?
Metadata
Metadata
Assignees
Labels
No labels