Listing child_models

<% @child_models.each do |child_model| %> <% end %>
Name Parent Model Second Parent Model
<%=h child_model.name %> <%=h child_model.parent_model_name %> <%=h child_model.second_parent_model_other_field %> <%= link_to 'Show', child_model %> <%= link_to 'Edit', edit_child_model_path(child_model) %> <%= link_to 'Destroy', child_model, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New child_model', new_child_model_path %>