Pārlūkot izejas kodu

Minor bugfix

tags/last-sinatra-version
Adrian Short pirms 14 gadiem
vecāks
revīzija
a0e00023b7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt