Sha256: f6ab315af09da0b059d4e893f858a76adf7d03da879bde840562eb09e4d98bb7

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

<h1>Listing items</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Price</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @items.each do |item| %>
  <tr>
    <td><%= item.name %></td>
    <td><%= item.price %></td>
    <td><%= link_to 'Show', item %></td>
    <td><%= link_to 'Edit', edit_item_path(item) %></td>
    <td><%= link_to 'Destroy', item, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Item', new_item_path %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 full-examples/rest_from_scratch/part_1/app/views/items/index.html.erb
restfulie-1.1.1 full-examples/rest_from_scratch/part_1/app/views/items/index.html.erb
restfulie-1.1.0 full-examples/rest_from_scratch/part_1/app/views/items/index.html.erb
restfulie-nosqlite-1.0.3 full-examples/rest_from_scratch/part_1/app/views/items/index.html.erb
restfulie-1.0.3 full-examples/rest_from_scratch/part_1/app/views/items/index.html.erb