uninitialized constant Ability Rails
问题 I have gone through different solutions given to this problem but none of them is working so please don't try to close the question as duplicate. I have role column in my users table. So user can by admin or user and I need to put permissions on the base of user Role using CanCan . I want to give all permissions to admin. I am logged in as admin but when I access /users I get the error uninitialized constant Ability and when I remove load_and_authorize_resource my cancan permission doesn't