Jim, have you solved this?
No luck for me so far.
I have in my database.yml
===========
development:
adapter: mysql
database: awesome_database
foo:
adapter: mongo
database: foos
in Foo.rb model
===========
class Foo < ActiveRecord::Base
establish_connection :foos
end
> Foo.connection.instance_eval {@config[:database]}
ArgumentError: wrong number of arguments (1 for 0)
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in
`mongo_connection'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in `send'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:245:in
`checkout_new_connection'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:188:in `checkout'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:184:in `loop'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:184:in `checkout'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/monitor.rb:242:in `synchronize'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:183:in `checkout'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:98:in `connection'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:326:in
`retrieve_connection'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_specification.rb:123:in
`retrieve_connection'
from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_specification.rb:115:in
`connection'
from (irb):1
On Apr 13, 10:46 am, Jim Mulholland <
j...@squeejee.com> wrote:
> Thanks for the link. Should be very helpful.
>
> That is what I figured regarding inline objects. Thanks for checking.
>
> On Apr 13, 12:21 pm, Michael Dirolf <
m...@10gen.com> wrote:
>
> > On Apr 13, 2009, at 1:01 PM, Jim Menard wrote:
>
> > > On Mon, Apr 13, 2009 at 12:25 PM, Michael Dirolf <
m...@10gen.com>
> > > wrote:
>
> > >> inline:
>
> > >> On Apr 13, 2009, at 10:05 AM, Jim Mulholland wrote:
>
> > >>> We are testing out MongoDB with an existingRailsapp. We decided