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

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

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