Are you referring to the composite storage? It looks pretty slick and
I see the benefits but right now I'm happy to get just one functioning
correctly ;)

On Mar 27, 3:37 pm, marsbomber <[email protected]> wrote:
> Have you considered implementing work history using mongo in a separate
> layer and keep ruote to redis? John pointed me to custom ruote service
> implementation, which I think it's a killer feature.
>
>
>
>
>
>
>
> On Wednesday, 28 March 2012 02:00:18 UTC+11, Damon Torgerson wrote:
>
> > Hi,
>
> > First off, really impressed with Ruote. More I learn, the better it
> > gets. 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)
> >         from /Users/damon/.rvm/gems/ruby-1.9.2-p290/bundler/gems/ruote-
> > mongodb-f1ad2a74e341/lib/ruote-mongodb/mongodb_storage.rb:85:in `get'
> >         from /Users/damon/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> > ruote-4d1b46ef39de/lib/ruote/storage/base.rb:66:in
> > `replace_engine_configuration'
> >         from /Users/damon/.rvm/gems/ruby-1.9.2-p290/bundler/gems/ruote-
> > mongodb-f1ad2a74e341/lib/ruote-mongodb/mongodb_storage.rb:17:in
> > `initialize'
> >         from /Users/damon/projects/studenttransfer/config/application.rb:
> > 66:in `new'
> >         from /Users/damon/projects/studenttransfer/config/application.rb:
> > 66:in `block in <class:Application>'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/lazy_load_hooks.rb:34:in `call'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/lazy_load_hooks.rb:42:in `each'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/application/finisher.rb:56:in `block in <module:Finisher>'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/initializable.rb:30:in `instance_exec'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/initializable.rb:30:in `run'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/initializable.rb:55:in `block in run_initializers'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/initializable.rb:54:in `each'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/initializable.rb:54:in `run_initializers'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/application.rb:96:in `initialize!'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/railtie/configurable.rb:30:in `method_missing'
> >         from
> > /Users/damon/projects/studenttransfer/config/environment.rb:5:in
> > `<top (required)>'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/dependencies.rb:240:in `require'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/dependencies.rb:240:in `block in require'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/dependencies.rb:223:in `block in load_dependency'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/dependencies.rb:640:in `new_constants_in'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/dependencies.rb:223:in `load_dependency'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/
> > lib/active_support/dependencies.rb:240:in `require'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/application.rb:83:in `require_environment!'
> >         from
> > /Users/damon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/
> > rails/commands.rb:39:in `<top (required)>'
> >         from script/rails:6:in `require'
> >         from script/rails:6:in `<main>'
>
> > Any ideas on places I should look?
>
> > Regards,
> > Damon

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