This is what we have and it seems to work in all the browsers
response.body = xml.to_s
response.content_type = "application/x-generated-xml-backup";
filename = "Filename.xml"
response.headers['Content-disposition'] = "Attachment;
filename=\"#{filename}\""
render :text => xml.to_s
Cheers
Simon
respond_to do |format|
format.xml {
send_data @items.to_xml, :filename => "items.xml"
}
end
end
end
--
Satchel Paige - "Don't look back. Something might be gaining on you."
@item.to_xml do |xml|
# builder stuffs
end
--
Emo Philips - "My computer beat me at checkers, but I sure beat it at
kickboxing."