Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 294 Bytes
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