Download XML

Hi Folks,

Good Noon,

I want to download XML file,

I used in my index,

%a{:download => “weborder”, :href => “/orders.xml?q=a10ie5Vb”, :style => “float: left;padding: 0px;background:none;”}

In my controller,

def index

@order = Order.find_by_cart_id(current_cart.id)

if params[:q].present?

if params[:q] == “a10ie5Vb”

render “index”

else

render :text => “nodata”

end

else

render :text => “nodata”

end

end

This works. but only in Chrome.

I want this to download all my browsers like ie 7 8 9,firefox,etc.

Is there any other way??

Please advise.

Thankyou.

This works. but only in Chrome.

I want this to download all my browsers like ie 7 8 9,firefox,etc.

what do you mean by not working?

Fred

I should be downloadable ie, like an attachment file.
But it just opened in new tab.