Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.343 kb
class Surf < Sinatra::Base
set :erb, :format => :html5
get "/" do
q = "
SELECT * FROM surf_reports
WHERE location IN ('Capitola','Pleasure Point', '38th Ave')
GROUP BY location
ORDER BY created_at DESC
"
@latest_reports = SQLite3::Database.new( "surf_reports.db" ).execute q
erb :index
end
end
Jump to Line
Something went wrong with that request. Please try again.