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

13 lines (10 sloc) 0.294 kB
require "sinatra"
require "erubis"
require "active_record"
Dir["./models/*.rb"].each { |m| require m }
CONFIG = YAML.load_file("config.yml")[Sinatra::Application.environment.to_s]
ActiveRecord::Base.establish_connection CONFIG["db"]
set :erb, :escape_html => true
get "/" do
erb :index
end
Jump to Line
Something went wrong with that request. Please try again.