I am trying to add comments to my post, so i crated a a new scaffold for it
i set it to belongs_to :posts
I made a field called post_id, but didnt define it in the controller.
In my posts.show.html.erb, i added
<%= render "comments/form" %>
Which worked perfectly and added a small comments form, but im unable to submit a comment.
I even added:
<%= render @post.comments.all %>