Skip to content

Instantly share code, notes, and snippets.

@albemuth
Created April 6, 2009 20:05
Show Gist options
  • Save albemuth/90905 to your computer and use it in GitHub Desktop.
Save albemuth/90905 to your computer and use it in GitHub Desktop.
ROOT = '../'
Shoes.setup do
gem 'activerecord'
end
require 'active_record'
require 'note'
Shoes.app do
ActiveRecord::Base.establish_connection(
:adapter => 'sqlite3',
:dbfile => File.join(ROOT, 'db', 'test.sqlite3')
)
@notes = Note.find(:all)
para @notes
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment