From 01bd9222d9ddec98586fb7c30413ab298d07b8a7 Mon Sep 17 00:00:00 2001 From: Date: Fri, 9 May 2008 17:31:56 -0400 Subject: [PATCH] QuickVotes are now displayed in the control panel list - and you can click on them. They aren't specially marked yet though. --- app/controllers/election_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 6faaf22..bfef021 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -76,6 +76,10 @@ class ElectionController < ApplicationController :locals => { :page => 'review' } @election = Election.find(params[:id]) + if @election.type == QuickVote + redirect_to(:controller => 'quickvote', :action => 'index', :ident => @election.id) + end + end def start_election -- 2.30.2