Permalink
Find file
bdab793 Jul 7, 2015
@zapnap @mcollina @bryanwoods
24 lines (19 sloc) 393 Bytes
require "rubygems"
require "bundler/setup"
require "sinatra"
require File.join(File.dirname(__FILE__), "environment")
configure do
set :views, "#{File.dirname(__FILE__)}/views"
set :show_exceptions, :after_handler
end
configure :production, :development do
enable :logging
end
helpers do
# add your helpers here
end
# root page
get "/" do
@profiles = Profile.all
erb :root
end