Sha256: b3d4c459ff0ecfa4dc92141cac632e41ae24161480d17322d853a81ab21b5baa

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

Contents

<h1>Listing items</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Sort</th>
      <th>Updated at</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

  <tbody class="sortable">
    <% @items.each_with_sortable_id do |item, sortable_id| %>
      <tr id="<%= sortable_id %>">
        <td><%= item.title %></td>
        <td><%= item.sort %></td>
        <td><%= item.updated_at %></td>
        <td><%= link_to 'Show', item %></td>
        <td><%= link_to 'Edit', edit_item_path(item) %></td>
        <td><%= link_to 'Destroy', item, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_sortable-1.1.2 spec/dummy/app/views/items/index.html.erb
rails_sortable-1.1.1 spec/dummy/app/views/items/index.html.erb
rails_sortable-1.1.0 spec/dummy/app/views/items/index.html.erb
rails_sortable-1.0.0 spec/dummy/app/views/items/index.html.erb