Hi Tal,
I have the same problem and I don't think its possible at the moment:
https://github.com/mongoid/mongoid/blob/master/lib/mongoid/sessions/factory.rb#L58.
It seems to me, that there is no uri option.
Cheers,
Hans
On May 4, 8:20 am, Durran Jordan <
dur...@gmail.com> wrote:
> I'm going to release a new doc site for this with Mongoid 3, but if you
> want to see the writeup ahead of time you can look directly at the
> mongoid-side master branch here:
>
>
https://github.com/mongoid/mongoid-site/blob/master/source/mongoid/do...
>
> In a nutshell, a "session" is a database connection between the app and the
> db server. This can be a single connection, or many in the case of replica
> sets, but it's all encapsulated by a single session object. At minimum you
> just need to define 1 default session.
>
> The reasoning for having the ability to have multiple sessions is that many
> users had asked for this - some apps, particularly SaaS ones can have a
> database per client on their own server. So now in Mongoid you can set this
> up and talk to whatever database you want in whatever database server you
> want at runtime.
>
>
https://github.com/mongoid/mongoid-site/blob/master/source/mongoid/do...
>
> 2012/5/3 Tal Atlas <
swimming.b...@gmail.com>