-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined method `authorize_with' #40
Comments
I need to correct the README there -- it should be |
Unfortunately, still doesn't work. The same error message, undefined method. Somehow even Built-in (DSL) doesn't work, giving: undefined method `authorize'. I have these versions: |
Make sure you are also using the authorization branch of trestle-auth from GitHub. In your Gemfile: gem 'trestle-auth', github: 'TrestleAdmin/trestle-auth', branch: 'authorization' |
Works now, thank you! |
@spohlenz Hello I have a similar problem as I have this error: I am also using devise i the latest Rails version, we would like to use your solution as Admin interface for our new legacy website, if we can't get around we're gonna choose another solution sadly. Here is the line that throws an error in the |
pardon the intrusion with this old discussion, basically before logging in, i'll check the user if they're an admin or not.... |
Hello!
I wanted to use Cancan with Trestle, but it keeps giving me an error message saying : undefined method `authorize_with'
Refering to this line: config.authorize_with cancan: -> { AdminAbility }
Is there any solution?
The text was updated successfully, but these errors were encountered: