Hello All,
I am working now on Admin Console project where the admin user should
be export tables in a schema to CSV format.
I am able to do this perfectly with the current database
but when i am selecting a table from a different database (i.e is
which is not used by rails i.e is test or production or some xyz
Database ) its throwing me an error
even i tried with this one and i am able to export,
@conn1=ActiveRecord::Base.establish_connection(:adapter =>
"mysql",
:host => "localhost",
:username => "root",
:password => "xxxx",
:database => schemaname
)
i tried ActiveRecord::Base.remove_connection
but after a scuessfull completion of exporting its getting lost the
current data base connection and the presnent state of the Logged in
User
how can i over come this situation
am i missing some thing in this
Thanks
Jagan
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---