Loading a page into memory in Rails
Posted
by titaniumdecoy
on Stack Overflow
See other posts from Stack Overflow
or by titaniumdecoy
Published on 2010-04-03T06:22:03Z
Indexed on
2010/04/03
6:23 UTC
Read the original article
Hit count: 316
My rails app produces XML when I load /reports/generate_report.xml.
On a separate page, I want to read this XML into a variable and save it to the database.
How can I do this? Can I somehow stream the response from the /reports/generate_report.xml URI into a variable? Or is there a better way to do it since the XML is produced by the same web app?
© Stack Overflow or respective owner