Sha256: 37e26d6bdaf3c9d4fb1b330d508a2c2e7442ad4e6b5aa3c0395f68e6a43483d2

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

<h1>Listing child_models</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Parent Model</th>
    <th>Second Parent Model</th>
  </tr>

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

<br />

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

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
view_mapper-0.3.4 test/views/belongs_to/expected_templates/index.html.erb
view_mapper-0.3.4 test/views/belongs_to_auto_complete/expected_templates/index.html.erb