Sha256: 77741ea2662a998264374e1b1cb080c47079731c5b0395c9c783b4eb3e1b9e44

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 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">
    <% sortable_fetch(@items) do |item, id_tag| %>
      <tr id="<%= id_tag %>">
        <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

3 entries across 3 versions & 1 rubygems

Version Path
rails_sortable-0.1.1 spec/dummy/app/views/items/index.html.erb
rails_sortable-0.1.0 spec/dummy/app/views/items/index.html.erb
rails_sortable-0.0.5 spec/dummy/app/views/items/index.html.erb