Sha256: caca85edac09a1ad2de7ec847275f5944dc41c420342685c77f2f82eb9d33c98

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

<h1>Listing items</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Sort</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><%= 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.0.4 spec/dummy/app/views/items/index.html.erb
rails_sortable-0.0.3 spec/dummy/app/views/items/index.html.erb
rails_sortable-0.0.2 spec/dummy/app/views/items/index.html.erb