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

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

<% end %>
<%= f.label :first_name %> <%= f.text_field :first_name, class: 'form-control' %> <%= f.label :infix %> <%= f.text_field :infix, class: 'form-control' %> <%= f.label :last_name %> <%= f.text_field :last_name, class: 'form-control' %>
<%= f.label :email %> <%= f.email_field :email, class: 'form-control' %>
<% unless defined? no_admin %>
<%= f.check_box :is_admin %> <%= f.label :is_admin %>
<% end %> <%= f.submit %>
<% end %>