1 <% victories, tied =@election.condorcet_result.list_defeats -%>
2 <%candidates = @election.candidates.sort.collect {|candidate| candidate.id}%>
3 <% names = Hash.new -%>
4 <% candidates.each do |candidate| -%>
5 <%names[candidate] = Candidate.find(candidate).name -%>
8 <% victories.each do |victory| -%>
9 <%= names[victory[0]] %> beat <%= names[victory[1]] %> by <%= victory[2]%>
13 <% tied.each do |tie| -%>
14 <%= names[tie[0]]%> tied with <%= names[tie[1]]%><br />