<%= form_for @post_category, :url => spud_admin_post_category_path(@post_category), :html => {:class => 'right_aligned_form'} do |f| %> <% if @post_category.errors.any? %>

<%= pluralize(@post_category.errors.count, "error") %> prohibited you from saving this post:

<% end %>
Post Category
  1. <%= f.label :name %> <%= f.text_field :name %>
  2. <%= label_tag 'Parent' %>
<%= f.submit 'Save Post Category' %> or <%= link_to "cancel", request.referer %>
<% end %>