Cassius Rosenthal on 20 Feb 2006 04:18:43 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Initialize ActiveRecord w/o a database.

Adam, thanks for the response.

Taken out of context, my question doesn't sound so complicated. The question revolves around how to initialize ActiveRecord, not the connection. From my previous post:
I tried leaving 'database.yml' blank and I tried disabling ActiveRecord's initialization. Both cause runtime errors in the app, as it tries to cache relationships I guess.
Yes; I would like to establish a new connection using "ActiveRecord::Base#establish_connection." I can't, because the entire stack dies first, because ActiveRecord is trying to connect to 'config/database.yml.'


Adam C. Greenfield wrote:
On 2/19/06, Cassius Rosenthal <> wrote:
The question: Does anybody have an idea of how to initialize
ActiveRecord on-the-fly, without using the config/database.yml' convention?

Your looking for ActiveRecord::Base#establish_connection I suspect: _______________________________________________ talk mailing list

_______________________________________________ talk mailing list