Sha256: 6b363ebbcf7796395eeed49c59d3627f655f74b56608848154e03f2defacc855

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

<p id="products-index"></p>

<h1>Listing Products</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Price</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @products.each do |product| %>
      <tr>
        <td><%= product.name %></td>
        <td><%= product.price %></td>
        <td><%= link_to 'Show', product %></td>
        <td><%= link_to 'Edit', edit_product_path(product) %></td>
        <td><%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Product', new_product_path %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
better_frame-0.1.2 test/dummy/app/views/products/index.html.erb
better_frame-0.1.1 test/dummy/app/views/products/index.html.erb
better_frame-0.1.0 test/dummy/app/views/products/index.html.erb