Authenticity Error After Making New User 5/12


I'm getting an error:


after I try to make a new account Ruby on Rails authentication tutorial. Codecademy is allowing me to go to the next lesson, so I'm not sure if my code is correct or not.

The error is in the "Signup II" lesson


I figured out how to solve the problem. I had to delete protect_from_forgery with: :exception in the Application Controller.


worked for me too, but I wonder why?


It seems like the authenticity token isn't working for some reason. Instead of commenting that line out, I just replaced :exception with :null_session as the comment above it suggests.


Thank you! Same problem for me

Go to /app/controllers/application_controller.rb and do :null_session


I ran into the same issue and adding 'protect_from_forgery' in my User controller worked for me (I kept 'protect_from_forgery with: :exception' in the Application controller)