app/views/contestants/_form.html.erb
<%= form_for(@contestant) do |f| %>
<% if @contestant.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@contestant.errors.count, "error") %> prohibited this contestant from being saved:</h2>
<ul>
<% @contestant.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.text_field :name, placeholder: 'First name', autocomplete: 'off' %>
</div>
<div class="actions">
<%= f.submit 'Register' %>
</div>
<% end %>