Loading a page into memory in Rails
- by titaniumdecoy
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?