I'm working on a RoR app with Devise. When I came in to work today and tried to start up my local dev environment, RoR failed when I tried to go to the sign in page:
NameError at /users/sign_in
undefined local variable or method `require_no_authentication' for #<SessionsController:0x########>
It looks like the error is not being raised within the code we wrote, but instead from deep within the Devise gem. I'm guessing that somehow, my dev machine isn't configured right.
Here are some things I've tried to fix the bug:
- I ran
rake db:migrate
andrake db:terraform
. - I ran
bundle install
. - I ran
rvm gemset empty
andbundle install
to reinstall all of my gems.
None of these worked.
In addition, here are a couple more strange things about this error:
- None of the other devs at my workplace are having the same error, even though they're on the same codebase.
- After trying to figure out the error for a while, I switched to a branch that I haven't updated since before I started getting this bug. Even though it was working before the weekend, that branch now fails with the same error.
Does anybody know anything I could do to try to fix this error? Does it sound like some part of my local configuration is incorrectly set up?