@voter = nil
end
- # if the voter does not exist or as has been destroyed, lets
+ # if the voter does not exist or has has been destroyed, lets
# create a new one
unless @voter
# create a new voter and populate it
@voter.ipaddress = request.env["REMOTE_ADDR"]
@voter.save
- # toggle the confirmation bit
+ # save the time the vote was made for statistical use, it doesn't
+ #work here unless I use a method that will save it to the db
+ @voter.vote.time = Time.now
+
+ # toggle the confirmation bit
@voter.vote.confirm!
+
@voter.reload
render :action => 'thanks'
end
@condorcet_result = PureCondorcetVote.new(preference_tally).result
@ssd_result = CloneproofSSDVote.new(preference_tally).result
@borda_result = BordaVote.new(preference_tally).result
- @runoff_result = InstantRunoffVote.new(preference_tally).result
+ #@runoff_result = InstantRunoffVote.new(preference_tally).result
+ #@runoff_results = PluralityVote.new(preference_tally).result
+
@candidates = {}
@election.candidates.each {|c| @candidates[c.id] = c}