Closed beisert1 closed 10 years ago
Seems in the directions, the code goes from: "@comment = @post.comments.create(params[:comment].permit(:commenter, :body))" to "@comment = @post.comments.create(params[:comment])"
When adding the "destroy". Not sure why but that's your problem.
Thank you I changed it back to "@comment = @post.comments.create(params[:comment].permit(:commenter, :body))" and it works now!!!
Thanks again!
Adding comments used to work but now after I finished the tutorial everything works except for adding new comments. I triple checked the syntax and I believe it might of happened in the re-factoring section of the tutorial because I was able to add comments before that. Here is my error: