: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
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 %>
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 %>