Thanks Fred,

Actually my "contacts" table is in other database.
Means I have two databases "development1" and "development2". My main 
database is "development1". My contacts table reside in "development2".
So I have writtes like this

  establish_connection(:development2)
    @contact=ActiveRecord::Base.connection.execute("select * from 
contacts where id=1")

Still it is givng me error that "ERROR: Mysql::Error: Table 
development1.contacts' doesn't exist"

Can you tell me what is wrong with this?

Thanks,
Tushar Gandhi


Frederick Cheung wrote:
> > Fred

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to