I just finished Hartl\'s Rails Tutorial book and I\'m using his account authentication logic in my first rails app. However, when I make a new user account and set it as an
Not sure what is going on specifically. Could be that the password is getting encrypted again using a different salt (which is based on the time). Try adding debugger
to the first line of encrypt_password
and then run the same code from the console to see if the password is getting encrypted when you run toggle!