Closed ghost closed 7 years ago
If I use CanCanCan like this I have this error: "Couldn't find Setting with 'id'=myLabelSetting".
Why?
My ability.rb:
class Ability include CanCan::Ability def initialize(user) if user.admin? can :manage, :all else # do nothing end
If I use CanCanCan like this I have this error: "Couldn't find Setting with 'id'=myLabelSetting".
Why?
My ability.rb: