Working through the tutorials in the RailsSpace book, and cannot figure out what I am doing wrong here. Full code for the edit function which is tossing the error as well as appropriate code from the model the actual error are pasted below.
Thank you for your help.
Dave
Forgot to add that line 63 in the user_controller.rb is
if @user.correct_password?(params)
It’s saying that correct_password? is a private method
private method `correct_password?’ called for #User:0x485ee28
Move this above the private keyword in your User.rb file, or use the public keyword just above the method definition.
HTH Daniel
Works like a charm.
Thank you sir.