From 08463cdd9e4464192a915290c556a375151d129e Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 18 Jun 2013 17:27:46 -0700 Subject: [PATCH] fix comment forms being visible everywhere --- app/views/comments/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb index 47b6e8698..0c5b47949 100644 --- a/app/views/comments/_form.html.erb +++ b/app/views/comments/_form.html.erb @@ -1,4 +1,4 @@ -<%= simple_form_for(comment) do |f| %> +<%= simple_form_for(comment, :html => {:class => "edit_comment"}) do |f| %> <%= dtext_field "comment", "body", :value => comment.body, :input_id => "comment_body_for_#{comment.id}", :preview_id => "dtext-preview-for-#{comment.id}" %> <%= f.button :submit, "Submit" %> <%= dtext_preview_button "comment", "body", :input_id => "comment_body_for_#{comment.id}", :preview_id => "dtext-preview-for-#{comment.id}" %>