I had a rails app which was running perfectly with devise 3 and rails 4. I updated rails to 5 and it gave DEPRECATION WARNING: alias_method_chain is deprecated
. So i had to change the devise version to 4.0.0.rc1.
Now it seems like the devise is not generating the methods like authenticate_user!
, is_admin
etc..
I am getting the following error
Before process_action callback :authenticate_user! has not been defined (ArgumentError)
I tried everything including, uninstall devise and install again, then tried to create a separate model from scratch and still the methods are not defined.
Any ideas please ?
binding.pry
debug statement If you are running it from terminal you may get a file path and line number which throws the error, so just don't be afraid to dive into it. – Hassan