Re: [Rails] send_data always sends xml file?

2012-03-15 Thread Chris Morris
"Mac thinks it's an xml file." -> Does the file end up with an .xml extension in your Downloads dir? and/or when you try to open it some program registered to .xml extension opens it or what? Which browser and what do you see in the Response headers? All browsers do the same thing? -- Chris htt

[Rails] send_data always sends xml file?

2012-03-13 Thread Jeff Pritchard
I'm trying to use send_data to send a simple text file. Every reference I can find says I can supply a MIME type with the ":type" option and that will determine the kind of file I get on the machine that downloads the file I'm sending. Instead I ALWAYS get an XML file. here's the code snippet: