Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:35
Show Gist options
  • Save craigw/150795 to your computer and use it in GitHub Desktop.
Save craigw/150795 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'hpricot'
require 'net/http'
require File.dirname(__FILE__) + '/../vendor/gems/activecouch/init'
$: << File.dirname(__FILE__) + '/../app/models'
ActiveCouch::Base.class_eval do
set_database_name 'blog'
site 'http://localhost:5984/'
end
require 'article'
require 'comment'
require 'author'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment