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

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

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