Good morning, all!
Can anyone point me to the direction of creating a link that leads to
the downloading of a rails generated XML file. I have an app and a
database both called catalog, and I have
a controller called store, and a model called product. The database
has a products table with a handful of manually input product items.
The controller is quite plain with an index and a @products =
How may I create a button or link that leads to the generating of an
XML file and one to Excel (is it possible? I mean, copyright and
loyalty to MS a concern?). And how can I make it so that after
clicking this link or button or both, the browser prompts for a
download instead of displaying it on itself like Firefox and Internet
Explorer do. Google Chrome just displays it in one line, I haven't
checked Safari yet.
Thank you in advance!