1 <div id="sortable_list">
2 <ol id="rankings-list">
3 <% for ranking in @voter.vote.rankings %>
4 <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
5 <%=h ranking.candidate.name.capitalize %></li>
10 <div class="clear-div"></div>
12 <%= sortable_element 'rankings-list',
13 :url => { :action => "sort_candidates", :id => @voter.vote.id },
14 :complete => visual_effect(:highlight, 'rankings-list') %>