Adding on to what miked said, the easiest way to make unique form id’s for the posts would be to use the post’s id numbers in the id attribute, like so:
<%= form_for [post, Comment.new,], :remote => true, :html => { :id => "new_comment_on_#{post.id}" } do |f| %>