Adam C. Greenfield on 20 Feb 2006 01:53:15 -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 <cassius@xmodulation.com> 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:
http://railsmanual.org/class/ActiveRecord%3A%3ABase/establish_connection
_______________________________________________
talk mailing list
talk@phillyonrails.org
http://lists.phillyonrails.org/mailman/listinfo/talk