Connecting to multiple databases

wiz561-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Thu, 28 Sep 2006 20:51:14 -0000

Hi!

    I would like to connect to multiple databases using RoR.  I
followed the examples in the Rails Recipes book, which worked out
fairly well.  Even when running in the console command...

"Hr.connection.instance_eval {@config[:database]}

    I get the correct db table and RoR makes a connection to the
database server.  However, whenever I run a query through scaffold (or
the console), it always gets redirected to the localhost and not the
server.

    Does anybody know what my problem may be?


Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---