%= form_for(@comment, :remote => (params[:action] == 'new' ? true : false)) do |f| %>
<% if @comment.errors.any? %>
<%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:
<% @comment.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.submit :data => {disable_with: "Submitting..."} %>
<% end %>