]> projects.mako.cc - selectricity/blobdiff - app/controllers/election_controller.rb
fix css malforming very long headers
[selectricity] / app / controllers / election_controller.rb
index eff920ff0419cdcb826e5b3d22817d13ffe07a5a..89a2c22ef10e5b4fa588d9235f1651ba74827644 100644 (file)
@@ -5,8 +5,6 @@ class ElectionController < ApplicationController
   require_dependency "candidate"
   layout 'main'
 
-  #before_filter :login_required
-
   ## methods for displaying, creating,
   ## and manipulating election overview data
   ####################################################################
@@ -152,6 +150,14 @@ class ElectionController < ApplicationController
     voter.destroy
   end
   
+  def remind_voter
+    voter_array= FullVoter.find(:all, :conditions => ["email = ?", params[:email]])
+    voter_array.delete_if {|voter| voter.election.active == 0}
+    unless voter_array.empty?
+      VoterNotify.deliver_reminder(voter_array)
+    end
+  end
+  
   ## methods for computing and printing results
   ####################################################################
   def results

Benjamin Mako Hill || Want to submit a patch?