Browse Source

Minor bugfix

tags/last-sinatra-version
Adrian Short 14 years ago
parent
commit
a0e00023b7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb View File

@@ -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


Loading…
Cancel
Save