-
Notifications
You must be signed in to change notification settings - Fork 64
Home
mattmatt edited this page Sep 13, 2010
·
4 revisions
For now here’s a hack by mattmatt to enable logging in Rails: http://gist.github.com/272912
Instead of using the default CouchPotato.database you have to create your own database instance like this:
# define the CouchDB server through CouchRest
CouchServer = CouchRest::Server.new "http://<user>:<password>@<account>.couch.io"
# create the CouchRest database
CouchRestDB = CouchRest::Database.new CouchServer, "<database>"
# use that with CouchPotato
CouchDB = CouchPotato::Database.new(CouchRestDB)