I think you have already set up the has_many relationship. That is all
it takes.
Now you can display comments below every post by using a selection
operation matching the post_id colums in both tables.
something like…
find all where post_id = post_post
hope you got it.
But those tutorials still dont tell you what to do in the contrller or
form view for my comments
I know i need to change something in the CREATE action of my comments
controller, so every comment that is created gets assigned to a post.
What exactly is it?
David, Ryan B. has redone the classic Rails blog screencast which
answers
your
your question(s) quite nicely. Thus, you can find the screencast here
and
following
along: