<%= form_for [:admin, @category] do |f| %> <% if @category.errors.any? %>

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

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