<%= form_for(@comment) do |f| %> <% if @comment.errors.any? %>

<%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:

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