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

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

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>