Ruby on Rails, Threadly Project


I am currently trying to implement the threadly project and i am getting stuck on the 12th step. I have made the changes asked for in the instructions for this step but when i run the app locally and try to post a comment, i get an error: " ActionController::InvalidAuthenticityToken"

I am attaching its screen shot here:

I looked at the video solution as well and it looks like i did things correctly, not sure why i am getting this error.

1 Like

I ran into the same issue. This post from the innovation Cloud lesson helped me out, basically add the below on line 2 of your PostsController to make it work.

skip_before_action :verify_authenticity_token