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 local variable or method `rolify' for User #418
Comments
Ran into the same issue after upgrading an existing app from rails 4.2.8 to 5.1.0. Reordering the Gemfile didn't do anything for my case. However, adding a
|
I'm using Rails 5.1.1 with rolify 5.1.0 and seem to have this same issue. None of the above suggestions worked however. First, after bundle installing, the generators would not appear in the |
@cipater solution worked for me. Rails 5.1.2 and rolify 5.1.0. Edit: It didn't Works :( Edit 2: I can see the web and everything it's ok. However, rake test aborts: "undefined local variable or method `rolify' for User" |
I fixed this by adding this line to require 'rolify/railtie' Reordering the Gemfile was not required. Got the idea from here. |
Added |
Hello, thank you for the wonderful work, I'm using Rolify with AR in a rails app and suddenly this error started appearing in a commit where I only changed some js, and some other stuff unrelated to rolify. I started debugging the problem and I have isolated the problem to the one line where the Gemfile.lock changes from react-rails from
react-rails (1.1.0)
toreact-rails (1.8.2)
.I'm using ruby 2.3.1, rails 4.2.7.1 and rolify 5.1.0. Sadly I couldn't replicate the issue with a new app.
In this gist you can see the conflicting gemfile and gemfile.lock.
Let me know if i need to supply more info.
The text was updated successfully, but these errors were encountered: