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
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
Hello Damon,
with the current ruote master, you can directly write:
dashboard.add_service('history', Ruote::StorageHistory)