From a0e00023b78ae796ab0ff296f034db643e9b4eae Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 7 May 2010 14:12:02 +0100 Subject: [PATCH] Minor bugfix --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 80acdd6..2cda70d 100644 --- a/app.rb +++ b/app.rb @@ -56,7 +56,7 @@ end get '/results/sutton-council/2010-05-06/:slug' do @ward = Ward.first(:slug => params[:slug]) - @candidates = Councilcandidate.all(:ward => @ward, :order => [ :votes_2010.desc ]) + @candidates = Councilcandidate.all(:ward_id => @ward.id, :order => [ :votes_2010.desc ]) @total_2010 = Councilcandidate.sum(:votes_2010, :ward_id => @ward.id) haml :resultssuttoncouncil end