Name: <%=h @parent_model.name %>

<% @parent_model.child_models.each do |child_model| %>

ChildModel Name: <%=h child_model.name %>

<% end %> <% @parent_model.second_child_models.each do |second_child_model| %>

SecondChildModel First name: <%=h second_child_model.first_name %>

SecondChildModel Last name: <%=h second_child_model.last_name %>

SecondChildModel Address: <%=h second_child_model.address %>

SecondChildModel Some flag: <%=h second_child_model.some_flag %>

<% end %> <%= link_to 'Edit', edit_parent_model_path(@parent_model) %> | <%= link_to 'Back', parent_models_path %>