Fix runtime errors in RubyVote introduced.
<%= `host #{IPAddr.new(voter.ipaddress).to_s}`.sub(/^.*pointer (.*)\.$/, '\1') %>
<% rescue ArgumentError => err %>
- <%= " - " %>
+ <%= voter.ipaddress %>
<% end %>
</td>
<td><%= voter.vote.votestring %></td>
b[1] <=> a[1]
end.collect {|a| a[0]}
- @points = self.election.votes
+ @points = @election.votes
# winners are anyone who has the same number of votes as the
# first person
votes[i] == votes[@ranked_candidates[0]]
end
- @points = self.election.votes
+ @points = @election.votes
end
end