Connecting to multiple databases


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

Does anybody know what my problem may be?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs