wiz561-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-28 20:51 UTC
Connecting to multiple databases
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 -~----------~----~----~----~------~----~------~--~---