Found my PDF version . . . Connect outside of Rails like so . . .

ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:host => "dbserver.com",
:database => "railsdb",
:username => "railsuser",
:password => "railspw"
) 

Before you inherit or . . . The more clumsy . . .

class Customer < ActiveRecord::Base
# ... 
end 
Customer.establish_connection(
:adapter => "mysql",
:host => "dbserver.com",
:database => "backend",
:username => "chicho",
:password => "piano")

After you inherit version.  Bear in mind that if you do it this way, you'll
likely need to connect for each model.

'njoy,
Mark




On 10/3/05 3:59 PM, "Lyle Johnson" <lyle.johnson / gmail.com> wrote:

> On 10/3/05, Graham Foster <nowahere / home.com> wrote:
> 
>> Is there any reason why I can't use ActiveRecord to help build a client
>> based app with FXRuby? If I'm understanding all this MVC stuff correctly,
>> then I'd just be using the M bit in another app. Seems like it would save
>> me a shed-load of work
>> True?
> 
> ActiveRecord is the ORM layer used by Rails, right? I don't think
> there's any technical reason why this wouldn't work, although I don't
> know that anyone's actually tried that yet. At any rate, I'd
> appreciate hearing about your experience with it (especially if you
> run into any conflicts between FXRuby and ActiveRecord).
>