From 8e1a0d53f38d9d4298ac4b393558ff3345ddb045 Mon Sep 17 00:00:00 2001 From: Date: Fri, 26 Dec 2008 14:39:46 -0500 Subject: [PATCH] fixed errors with election/class --- app/controllers/election_controller.rb | 2 +- app/views/common/_methodinfo_condorcet.rhtml | 2 +- app/views/common/_methodinfo_ssd.rhtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 5c13a81..ccbbafe 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -160,7 +160,7 @@ class ElectionController < ApplicationController :locals => { :page => 'review' } @election = Election.find(params[:id]) - if @election.type == QuickVote + if @election.class == QuickVote redirect_to(:controller => 'quickvote', :action => 'index', :ident => @election.id) end diff --git a/app/views/common/_methodinfo_condorcet.rhtml b/app/views/common/_methodinfo_condorcet.rhtml index 743dd45..b941eea 100644 --- a/app/views/common/_methodinfo_condorcet.rhtml +++ b/app/views/common/_methodinfo_condorcet.rhtml @@ -19,7 +19,7 @@ another Condorcet system.

There are too many candidates in your elections to show the result tables. - <% if not @election.type == QuickVote %> + <% if not @election.class == QuickVote %> <%= link_to "Click here", { :action => 'pref_tables', :id => @voter.password }, :popup => [] %> to view details. <% end %> diff --git a/app/views/common/_methodinfo_ssd.rhtml b/app/views/common/_methodinfo_ssd.rhtml index 00f9feb..230191c 100644 --- a/app/views/common/_methodinfo_ssd.rhtml +++ b/app/views/common/_methodinfo_ssd.rhtml @@ -31,7 +31,7 @@ Beatpath Winner, Path Voting, and Path Winner.

There are too many candidates in your elections to show the result tables. - <% if not @election.type == QuickVote %> + <% if not @election.class == QuickVote %> <%= link_to "Click here", { :action => 'pref_tables', :id => @voter.password }, :popup => [] %> to view details. <% end %> -- 2.39.5