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

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

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