% %>
The matrix listing the number of times that any candidate was preferred to any other candidates is listed here:
<% for candidate in @election.candidates.sort %> | <%=h candidate.name %> | <% end %>
---|---|
<%=h cand1.name %> | <% for cand2 in @election.candidates.sort %><% if cand1 == cand2 %> N/A <% next %> <% else %> <%= @voteobj.votes[cand1.id][cand2.id] %> <% end %> | <% end %>