]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/_candidate_list.rhtml
Created a partial to DRY the aja voting method. Modified the voter class to
[selectricity-live] / app / views / election / _candidate_list.rhtml
index 74d4c3c96016fbac4718169f230896854e060f13..881c0a5fb84d466a08338d25326793fa9401e18c 100644 (file)
@@ -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?