+ unless @election = QuickVote.ident_to_quickvote(params[:ident])
+ flash[:notice] = "Cannot find quickvote #{params[:ident]}."
+ redirect_to :controller => 'site'
+ return
+ end
+ if @election.viewable == 0 && @election.active == 1
+ render :action => 'not_viewable' and return
+ end
+ @results = @election.results