]> projects.mako.cc - selectricity/blobdiff - app/controllers/election_controller.rb
First major stab at the integration of Courtland's CSS into
[selectricity] / app / controllers / election_controller.rb
index 7040c38c26b7acdb8ee2bc50bacb5a42c16e6909..4ad8bacb354b5cac24a320b994f74427d2809a23 100644 (file)
@@ -67,6 +67,15 @@ class ElectionController < ApplicationController
     @election.activate!
     redirect_to :action => 'show', :id => @election.id
   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
+  end
 
   # methods fod display, adding, deleting, and manipulating candidate
   # information for elections
 
   # methods fod display, adding, deleting, and manipulating candidate
   # information for elections

Benjamin Mako Hill || Want to submit a patch?