Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (18 sloc) 0.645 kb
require "rubygems"
require "sequel"
# Load from vendor dir if it exists
# Use "rake sinatra:edge" to pull down the newest Sinatra from GitHub
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/vendor/sinatra/lib')
require "sinatra" unless defined?(Sinatra)
configure do
# Loads database configuration
require "config"
# Sets the view path
set_option :views, File.join(File.dirname(__FILE__), 'app', 'views')
# Models
# Dir["app/models/*.rb"].each { |c| require c }
# Multiple controller files
# Dir["app/controllers/*.rb"].each { |c| load c }
# Single controllers file
load File.join(File.dirname(__FILE__), "app", "controllers.rb")
Jump to Line
Something went wrong with that request. Please try again.