diff --git a/app.rb b/app.rb index 6356f7d..2b464d7 100644 --- a/app.rb +++ b/app.rb @@ -65,7 +65,7 @@ helpers do end get '/' do - @election = Election.get(12) # FIXME magic number + @election = Election.last # most recent election @election_title = "#{@election.body.name} #{@election.kind} #{long_date(@election.d)}" if params[:postcode]