diff --git a/app/views/comments/_new_comment.html.haml b/app/views/comments/_new_comment.html.haml index daf75f868..897e1e43c 100644 --- a/app/views/comments/_new_comment.html.haml +++ b/app/views/comments/_new_comment.html.haml @@ -1,7 +1,7 @@ = form_for Comment.new, :remote => true do |f| %p - %label{:for => "comment_text"} Comment - = f.text_area :text, :rows => 2 + %label{:for => "comment_text_on_#{post.id}"} Comment + = f.text_area :text, :rows => 2, :id => "comment_text_on_#{post.id}" = f.hidden_field :post_id, :value => post.id %p = f.submit "Comment"