%= form_for(@thing) do |f| %>
<% if @thing.errors.any? %>
<%= pluralize(@thing.errors.count, "error") %> prohibited this thing from being saved:
<% @thing.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :has_warning %>
<%= f.check_box :has_warning %>
<%= f.submit %>
<% end %>