Having trouble submitting comments on a blog built with Rails


#1

I've been working on a blog to practice with Rails, and I'm running into trouble.
Every time I try to submit a comment, I get an error saying the post's id is nil. I've been playing around with it for a while, and I've tried several different ways of submitting the comment, and none of them have worked so far. Could anyone help? The Git repo is here.

Thanks!


#2

@zystvan

Hi,
Where do you find the file where you post your comment in your Git?


#3

@miniapple8888 I don't think it's there anymore, but basically, I had forgotten to allow one of the form fields in the post_params in my posts controller :slight_smile: