From: Date: Fri, 9 May 2008 21:31:56 +0000 (-0400) Subject: QuickVotes are now displayed in the control panel list - and you can click on X-Git-Url: https://projects.mako.cc/source/selectricity-live/commitdiff_plain/01bd9222d9ddec98586fb7c30413ab298d07b8a7?hp=f8ebf16c9444c239928d730d1f84275b90d733e6 QuickVotes are now displayed in the control panel list - and you can click on them. They aren't specially marked yet though. --- 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