Hi All,

I am trying to use CouchPotato with a CouchDB instance on CloudAnt.

Following the very little documentation I could find, I am trying to do
this:

require "rubygems"
gem "couch_potato"
require "couch_potato"
CouchPotato::Config.database_name = "hangman"
CouchPotato::Config.database_server =
"https://user:password / orenshani.cloudant.com:5984"
CouchPotato.database

But I get an error

NoMethodError: undefined method `database_server=' for
#<#<Class:0xb73db280>:0xb73db0c8>
  from ./couch.rb:5
  from (irb):1:in `require'
  from (irb):1
  from /usr/lib/ruby/1.8/rubygems.rb:123


I checked with CouchPotato::Config.methods and database_server is really
not there

I am using CouchDB version 0.5.4

I'd appreciate it if anyone could tell me how to correctly connect to
the server. I can also be talked into other ways for using CouchDB as a
persistence layer...

Many thanks

Oren Shani

-- 
Posted via http://www.ruby-forum.com/.