Sha256: 0e77a0f899acc900215b70a3945bc4024c6db730d16a45ed031a9af76ac49447

Contents?: true

Size: 516 Bytes

Versions: 3

Compression:

Stored size: 516 Bytes

Contents

<h1>Listing products</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Code</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

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

<br />

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dejavu-0.1.2 test_app/app/views/products/index.html.erb
dejavu-0.1.1 test_app/app/views/products/index.html.erb
dejavu-0.1.0 test_app/app/views/products/index.html.erb