Connect Another Database

  • Thread starter Saurabh Peshkar
  • Start date
S

Saurabh Peshkar

Hi All,

I'm trying to connect another database using rails

I made changes in database.yml file

I succeed in that but with same table name,

I'm having two issues regarding that:

1) How to connect the specific table of another database (suppose table
name is Arthur and it is in database2, I'm working in database1)

2) How to connect database without making changes in database.yml file.


Any feedback appreciated,
Thanks
Saurabh
 
I

Iñaki Baz Castillo

2009/4/6 Saurabh Peshkar said:
Hi All,

I'm trying to connect another database using rails

I made changes in database.yml file

I succeed in that but with same table name,

I'm having two issues regarding that:

1) How to connect the specific table of another database (suppose table
name is Arthur and it is in database2, I'm working in database1)

2) How to connect database without making changes in database.yml file.

Hi, you should ask in a RubyOnRails maillist better than here (a pure
Ruby maillist).
However, Google shows lot of documentation about what you need:
http://www.google.com/search?q=3Drails+two+databases


--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top