<% %>
<ul id="candidate_list">
<% @election.candidates.each do |candidate| %>
- <% @candidate = candidate %>
- <%= render :partial => 'candidate_line' %>
+ <% @current_candidate = candidate %>
+ <%= render(:partial => 'candidate_line')%>
<% end %>
</ul>