Adam C. Greenfield on 20 Feb 2006 06:40:51 -0000

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

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

On 2/19/06, Cassius Rosenthal <> wrote:
> 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.'

Do you have a trace from when it dies that I can take a peek at?
talk mailing list