Skip to content

Instantly share code, notes, and snippets.

@davidmccoy
Last active August 29, 2015 13:57
Show Gist options
  • Save davidmccoy/9686921 to your computer and use it in GitHub Desktop.
Save davidmccoy/9686921 to your computer and use it in GitHub Desktop.
sinatra intro
require 'sinatra'
require 'sinatra/reloader' if development?
require 'pry'
require 'pg'
require 'active_record'
# require_relative ''
ActiveRecord::Base.logger = Logger.new( STDOUT )
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
:host => "localhost",
:username => "david",
:database => ""
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment