Sha256: f8aa62361d178fe2d36f49e266be9679cd269e10c3585677d2069690925f6b50

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

<h1>Listing photos</h1>

<table>
  <thead>
    <tr>
      <th>Product</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @photos.each do |photo| %>
      <tr>
        <td><%= photo.product %></td>
        <td><%= link_to 'Show', [product, photo] %></td>
        <td><%= link_to 'Edit', edit_product_photo_path(@product, photo) %></td>
        <td><%= link_to 'Destroy', [product, photo], method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Photo', new_product_photo_path(@product) %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bread-0.0.13 spec/dummy/app/views/photos/index.html.erb
bread-0.0.12 spec/dummy/app/views/photos/index.html.erb