public
Description: ruby persistence layer for CouchDB.
Home | Edit | New

Home

FAQ

How do I tell Couch Potato to use http authentication?

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)
Last edited by langalex, Mon Jun 22 11:11:11 -0700 2009
Home | Edit | New
Versions: