Forum: Ruby on Rails Send_file and Firefox

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
822a498b26a2cb7d1f0f2e7e37ce61b2?d=identicon&s=25 ed.howland (Guest)
on 2005-11-12 12:50
(Received via mailing list)
Hello,

I am trying to use send_file in my controller to serve up specific
content: (.doc, ..xls)

Seems to work fine in IE, but in FF (1.0.7, on Windows) after the file
d/ls and the app (MS Word, MSExcel) opens up with the content, a blank
window comes to the front (gets focus).

Any idea how to prevent this?

Do I need a redirect_to after the send_file in my controller's
download_file action?

Thanks
This topic is locked and can not be replied to.