Major changes in this commit over include work over several days but that was never...
[selectricity-live] / app / controllers / elections_controller.rb
index 696028e1287baabe6f3431ea12c337bcee0e4238..339c77bc8991fe80ef38ab6afddd53e5ca53974d 100644 (file)
@@ -100,7 +100,22 @@ class ElectionsController < ApplicationController
     voter.destroy
   end
   
+  def summary_results 
+  end
+  
+  def detailed_results
+    @election = Election.find( params[:id] )
+    @voting_rolls = []
+    @election.voters.each do |voter|
+      if voter.vote and voter.vote.confirmed?
+        @voting_rolls << voter
+      end
+    end
+  end
+  
   private
+    def randomize_order
+    end
 
     def process_incoming_voters(raw_voter_list)
       incoming_voters = RawVoterList.new( raw_voter_list )
@@ -127,4 +142,8 @@ class ElectionsController < ApplicationController
       @raw_voter_list = RawVoterList.new
       @raw_voter_list.email = incoming_voters.email
     end
+
+    def email_voter
+    end
+
 end

Benjamin Mako Hill || Want to submit a patch?