end
def general_information
+ @sidebar_content = render_to_string :partial => 'progress',
+ :locals => { :page => 'overview' }
@election = Election.new
render :action => 'general_information'
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
####################################################################
def edit_candidates
+ @sidebar_content = render_to_string :partial => 'progress',
+ :locals => { :page => 'candidates' }
@election = Election.find( params[:id] )
end