Forum: Ruby on Rails problem with send_file and Exlporer 7

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Frederic O. (Guest)
on 2007-02-27 11:11
Hi all,

I am new to RoR and ruby.
In one of my controller I have:

def attachment
        :filename  =>  'polop.txt',
  :disposition  =>  'attachment',
  :streaming    =>  'true')

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


Frederic O. (Guest)
on 2007-03-06 10:20
I found that by removing 'redirect_to' from the function that was
calling 'attachment' I was able to download my file with IE 7...
This topic is locked and can not be replied to.