Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4164

Need some starter help with CouchPotato

From Oren Shani <orenshani7@gmail.com>
Newsgroups comp.lang.ruby
Subject Need some starter help with CouchPotato
Date 2011-05-09 11:02 -0500
Organization Service de news de lacave.net
Message-ID <57470d14b061b2ee24015340c790991c@ruby-forum.com> (permalink)

Show all headers | View raw


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/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Need some starter help with CouchPotato Oren Shani <orenshani7@gmail.com> - 2011-05-09 11:02 -0500
  Re: Need some starter help with CouchPotato 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-09 14:22 -0500
  Re: Need some starter help with CouchPotato Brian Candler <b.candler@pobox.com> - 2011-05-10 02:18 -0500
  Re: Need some starter help with CouchPotato Oren Shani <orenshani7@gmail.com> - 2011-05-13 08:46 -0500

csiph-web