jptran0 / new-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Ruby 95.2%Language:Shell 2.8%Language:HTML 2.0%