X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/8ae0d71896fa022dd80e5a5de993e1382564fcb1..4e7a42adf9f2cb9319265596d73ed10d978e5f81:/app/views/quickvote/_pref_table.rhtml?ds=inline diff --git a/app/views/quickvote/_pref_table.rhtml b/app/views/quickvote/_pref_table.rhtml index 32f5de4..a3ba63d 100644 --- a/app/views/quickvote/_pref_table.rhtml +++ b/app/views/quickvote/_pref_table.rhtml @@ -1,4 +1,6 @@ <% candidates = @election.candidates.sort.collect {|candidate| candidate.id}-%> +<% voters = @election.voters.size %> + <% names = Hash.new -%> <% candidates.each do |candidate| -%> <%names[candidate] = Candidate.find(candidate).name -%> @@ -7,18 +9,24 @@