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

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

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :description %>
<%= f.text_field :description %>
<%= f.label :parent_resource %>
<%= f.hidden_field :parent_resource_id %>
<%= f.label @child_resource.parent_resource.name %>
<%= f.submit %>
<% end %>