From: Date: Fri, 26 Dec 2008 19:39:46 +0000 (-0500) Subject: fixed errors with election/class X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/8e1a0d53f38d9d4298ac4b393558ff3345ddb045?ds=sidebyside;hp=-c fixed errors with election/class --- 8e1a0d53f38d9d4298ac4b393558ff3345ddb045 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 %>