%= form_for(@form) do |f| %>
<% if @form.errors.any? %>
<%= pluralize(@form.errors.count, "error") %> prohibited this form from being saved:
<% @form.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= f.submit %>
<% end %>