This goes along with my other question; trying to get the correct post_id to go along when I submit a new Comment that belongs that a specific Post.
_form.html.erb
<%= f.hidden_field :project_id, :value => params[:id] %>
<%= f.hidden_field :post_id, :value => params[:id].post_id %>
<%= f.hidden_field :user_id, :value => current_user.id %>
kind of hard to know exactly what you are doing without seeing more code, but my guess is that a @post instance variable has set using
@post = Post.find(params[:id])in the controlleryou might also want to consider using nested routes in the case of comments?
I recommend reading about view helpers from the rails guides:
http://guides.rubyonrails.org/index.html
the http://guides.rubyonrails.org/getting_started.html page actually has code examples for a post with comments