+ 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