Skip to content

Instantly share code, notes, and snippets.

@burmjohn
Created October 24, 2008 15:48
Show Gist options
  • Select an option

  • Save burmjohn/19465 to your computer and use it in GitHub Desktop.

Select an option

Save burmjohn/19465 to your computer and use it in GitHub Desktop.
<ul id="todo-list" style="cursor: move">
<% @task.todos.each do |f| %>
<li id="todo_<%= f.id %>">
<%= f.name %>
</li>
<% end %>
</ul>
<%= sortable_element "todo-list",
:url => {:action => "sort", :id => @task},
:complete => visual_effect(:highlight, "todo-list")
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment