John,

Thank you so much for your quick reply and pointer to ruote-mon. I
included it in my Gemfile and was off to the races. I still have some
minor configuration to do but very straightforward.

One question, when I add the service to my dashboard (engine), it
appears as though I have to add what looks like a path.

    dashboard = Ruote::Dashboard.new(
      Ruote::Worker.new(
        Ruote::Mon::Storage.new(
          Mongo::Connection.new()['studenttransfer_development'],
          {})))
    dashboard.add_service('history'
                ,'ruote/log/storage_history' # <<<<<<<<<<<<<<<<
                ,  'Ruote::StorageHistory')

I've gone through the code and recognize this as an option but can't
seem to find where the option is defined. I'll admit my Ruby is not as
strong as I would like. What does this option represent?

Thanks again. You've done a wonderful job here.

On Mar 27, 1:10 pm, John Mettraux <[email protected]> wrote:
> 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/f1ad2a74e34152d46...
>
> 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