Skip to content

Instantly share code, notes, and snippets.

@j-manu
Created November 17, 2011 22:22
Show Gist options
  • Save j-manu/1374742 to your computer and use it in GitHub Desktop.
Save j-manu/1374742 to your computer and use it in GitHub Desktop.
<%= javascript_include_tag 'prototype.js' %>
<%= javascript_include_tag 'effects.js' %>
<%= javascript_include_tag 'dragdrop.js' %>
#reorder.rhmtl (Drag and Drop reordering via AJAX)
<div id="lists">
<ul id="sortable_list">
<% @lists.each do |list| %>
<li id="">"><%= list.name %></li>
<% end %>
</ul>
<%= link_to 'List Page', :action => 'list' %>
</div>
<%= sortable_element('sortable_list', :update => 'lists',:complete => visual_effect(:highlight, 'sortable_list'),:url => {:action => :update_positions}) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment