Created a partial to DRY the aja voting method. Modified the voter class to
[selectricity-live] / app / views / election / _candidate_list.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index 74d4c3c..881c0a5
@@ -1,7 +1,7 @@
 <% %>
 <ul id="candidate_list">
   <% @election.candidates.each do |candidate| %>
-    <% @current_candidate = candidate %>
-      <%= render :partial => 'candidate_line' %>
+      <% @current_candidate = candidate %>
+      <%= render(:partial => 'candidate_line')%>
     <% end %>
 </ul>

Benjamin Mako Hill || Want to submit a patch?