Sha256: 56f932a4d3d175c4c298cc887ac229809125b8adcc36a7392274c7834f07e226

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 Bytes

Contents

<h1>Listing products</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Sku</th>
    <th>Stock</th>
    <th>Amount</th>
    <th>Unit</th>
    <th>Net price</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @products.each do |product| %>
  <tr>
    <td><%= product.product_title %></td>
    <td><%= product.sku %></td>
    <td><%= product.in_stock %></td>
    <td><%= product.amount %></td>
    <td><%= product.unit %></td>
    <td><%= product.net_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 %>
</table>

<br />

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise_meteor-0.1.1 spec/test_app/app/views/products/index.html.erb
devise_meteor-0.1.0 spec/test_app/app/views/products/index.html.erb