+ def start_election
+ @election = Election.find(params[:id])
+
+ @election.voters.each do |voter|
+ email = VoterNotify.deliver_votestart(voter)
+ #render(:text => "<pre>" + email.encoded + "</pre>")
+ end
+
+ @election.activate!
+ redirect_to :action => 'show', :id => @election.id
+ end
+
+ def change_notices
+ election = Election.find(params[:id])
+ if election.notices == 0
+ election.notices = 1
+ else
+ election.notices = 0
+ end