<%@election.candidates.length.times do |count|-%> <% if (count%2)==0-%> <% else -%> <% end -%>

<%=count+1 -%>

<%end%>