Hi all,
I am new to RoR and ruby.
In one of my controller I have:
def attachment
send_file(‘polop.txt’,
:filename => ‘polop.txt’,
:disposition => ‘attachment’,
:streaming => ‘true’)
end
With Firefox, when the fonction is called the file can be downloaded and
the dialog box contains the right information… but with Internet
Explorer 7 the dialog box doesn’t have the right file name (it has the
name of the fuction that calls ‘attachment’) and doesn’t recognize the
format of the file.
I can’t find why I got this difference of behaviors. I hope you can
help.
Thanx
Fred