Sha256: 6d47b0965b9f4b1afac9e63500ea9b66013173d7f697be1d06a575f2e15f11f7

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

<p id="notice"><%= notice %></p>

<h1>Listing Things</h1>

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

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

<br>

<%= link_to 'New Thing', new_thing_path %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_cart-0.0.5 spec/dummy/app/views/things/index.html.erb
simple_cart-0.0.4 spec/dummy/app/views/things/index.html.erb
simple_cart-0.0.3 test/dummy/app/views/things/index.html.erb