Fix errors when viewing results as election creator before election close.
[selectricity] / app / views / common / _methodinfo_ssd.rhtml
index 00f9febe01d0270a57a13c5b840a5c4bd06bfe24..5c01987c562b4dbe49837d981e8e4cd209fb5098 100644 (file)
@@ -31,8 +31,8 @@ Beatpath Winner, Path Voting, and Path Winner.</p>
   There are too many candidates in your elections to show the result
   tables.
 
-  <% if not @election.type == QuickVote %>
-    <%= link_to "Click here", { :action => 'pref_tables', :id => @voter.password }, :popup => [] %>
+  <% if not @election.class == QuickVote %>
+    <%= link_to "Click here", { :action => 'pref_tables', :id => @election.id }, :popup => [] %>
     to view details.
   <% end %>
 

Benjamin Mako Hill || Want to submit a patch?