]> projects.mako.cc - selectricity-live/blobdiff - app/views/common/_sortable_vote.rhtml
merged in from code from the other master
[selectricity-live] / app / views / common / _sortable_vote.rhtml
index 6876966f0f44dbf6f24aae5aa996c49acfa3e4f7..0fe6ad17d6d45b2617fb6f63e6f773707dfc04c7 100644 (file)
@@ -1,8 +1,8 @@
 <div id="sortable_list">
 <ol id="rankings-list">
-  <% for ranking in @voter.vote.rankings %>
+  <% for ranking in @voter.vote.rankings.sort %>
     <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
-      <%=h ranking.candidate.name.capitalize %></li>
+      <%= white_list(ranking.candidate.name.capitalize) %></li>
   <% end %>
 </ol>
 </div>

Benjamin Mako Hill || Want to submit a patch?