If you can get the data in a CSV, YAML or even XML format, you could
write a rake task to do this, and then just fire off the rake task
with a runner.
I only suggest this as I gather that the rails app is already
connected to a different database, and you don''t want to connect rails
to two databases(although you can)
Cam
On Apr 17, 7:59 pm, Radu Spineanu
<r...-PeSs7ywbF5nXdzIbEjDwkQ@public.gmane.org>
wrote:> Hi,
>
> I need to insert SQL data in another database used by a PHP program
> from rails. Any ideas how I can do this?
>
> - Radu
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---