On Wed, Mar 28, 2012 at 04:58:37AM +0900, John Mettraux wrote:
>
> First off, really impressed with Ruote. More I learn, the better it
> gets.

Hello Damon,

welcome to ruote's mailing list.

> I've got it running successfully with file storage and with
> redis. I need to implement history so I thought I would switch from
> Redis to MongoDB, my main database.
>
> However, it seems I am unable to establish a connection. Ideally, I'd
> like to use the :config option but for now, I'm just trying to
> connect.
>
> Here's my connection information:
>
>      ::RuoteDashboard = Ruote::Dashboard.new(
>        Ruote::MongoDbStorage.new(
>          :connection=> {
>            "host" => "localhost",
>            "port" => 27017,
>            "database" => "studenttransfer_development" }))
>
> and here's the error I get:
>
> /Users/damon/.rvm/gems/ruby-1.9.2-p290/bundler/gems/ruote-mongodb-
> f1ad2a74e341/lib/ruote-mongodb/mongodb_storage.rb:196:in
> `get_collection': undefined method `collection' for #<Hash:
> 0x007fe8e349fa38> (NoMethodError)

According to the ruote-mongodb source at

  
https://github.com/PlasticLizard/ruote-mongodb/blob/f1ad2a74e34152d4629c38f74c4d95f0f99d4469/lib/ruote-mongodb/mongodb_storage.rb#L15-18

you're supposed to pass a Mongo object as first parameter.

Please note that there is also "ruote-mon":

  https://github.com/jmettraux/ruote-mon

(it's the one I strive to maintain).


Best regards,

--
John Mettraux - http://lambda.io/processi

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to