<%= form_for @comment, :html => {:class =>"dark-matter"} do |f| %>
  <%= render partial: "/errors" %>
  <p>
    <%= f.label :content %><br>
    <%= f.text_area :content %>
    <input name="type" type="hidden" value="<%= @type.class %>" />
    <input name="id" type="hidden" value="<%= @type.id %>" />
  </p>

  <p>
    <%= f.submit %>
  </p>
<% end %>

<div class="comment_div">
<%= form_for @comment, :html => {:class =>"dark-matter"} do |f| %>
  <%= render partial: "/errors" %>
  <p>
    <%= f.label :content %><br>
    <%= f.text_area :content %>
    <input name="type" type="hidden" value="<%= @type.class %>" />
    <input name="id" type="hidden" value="<%= @type.id %>" />
  </p>

  <p>
    <%= f.submit %>
  </p>
<% end %>
</div>
Add targetting div class to comments new form
Add targetting div class to comments new form
