<h1><%= @book.name %></h1>

<ul id="list">
  <% for chapter in @book.chapters -%>
    <li id="ch_<%= chapter.id %>" style="cursor:move;"><%= chapter.name %></li>
  <% end -%>
</ul>

<p id="order"></p>

<%= sortable_element 'list', 
      :update => 'order',  
      :complete => visual_effect(:highlight, 'list'), 
      :url => { :action => "order" } %>