Sha256: cb7f791399531c8dcbb84d4ad410111ba96a6aac89c3c3c2285b1b9874de707b

Contents?: true

Size: 655 Bytes

Versions: 15

Compression:

Stored size: 655 Bytes

Contents

<h1>Listing products</h1>

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

  <tbody>
    <% @products.each do |product| %>
      <tr>
        <td><%= product.name %></td>
        <td><%= product.code %></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

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api/app/views/products/index.html.erb
restspec-0.3.1 examples/store-api/app/views/products/index.html.erb
restspec-0.3.0 examples/store-api/app/views/products/index.html.erb
restspec-0.2.6 examples/store-api/app/views/products/index.html.erb
restspec-0.2.5 examples/store-api/app/views/products/index.html.erb
restspec-0.2.4 examples/store-api/app/views/products/index.html.erb
restspec-0.2.3 examples/store-api/app/views/products/index.html.erb
restspec-0.2.2 examples/store-api/app/views/products/index.html.erb
restspec-0.2.1 examples/store-api/app/views/products/index.html.erb
restspec-0.2 examples/store-api/app/views/products/index.html.erb
restspec-0.1 examples/store-api/app/views/products/index.html.erb
restspec-0.0.4 examples/store-api/app/views/products/index.html.erb
restspec-0.0.3 examples/store-api/app/views/products/index.html.erb
restspec-0.0.2 examples/store-api/app/views/products/index.html.erb
restspec-0.0.1 examples/store-api/app/views/products/index.html.erb