@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