Use this repository to create new Sinatra apps.
Optionally, to use ActiveRecord for database operations, add to the app.rb:
require "sinatra/activerecord"And in the config/environment.rb file add this code block:
configure do
# setup a database connection
set(:database, { adapter: "sqlite3", database: "db/development.sqlite3" })
endSome rights reserved — see LICENSE.txt