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