Created a partial to DRY the aja voting method. Modified the voter class to
[selectricity-live] / app / views / voter / review.rhtml
index d1eb9dc4a91e32aaa17f8ef36cf6d313927e7d9b..b8b9089f2775500478d97e8baaa17f7923d2539f 100644 (file)
@@ -1,13 +1,14 @@
 <% %>
 
+<% %>
 <h1>Please review your vote carefully before confirming it.</h1>
 
 <p>You have ranked the candidates in the following order (from most
 preferred to least preferred:</p>
 
 <ol>
-  <% for rank in @vote.rankings.sort %>
-  <li><%= rank.candidate.name %> </li>
+  <% for rank in @voter.vote.rankings.sort %>
+  <li><%=h rank.candidate.name.capitalize %> </li>
   <% end %>
 </ol>
 

Benjamin Mako Hill || Want to submit a patch?