Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 452 Bytes

File metadata and controls

20 lines (14 loc) · 452 Bytes

sinatra-template

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" })
end

Some rights reserved — see LICENSE.txt