Forum: Ruby on Rails Modifying title of browser window when rendering a file

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.
Wes G. (Guest)
on 2007-03-16 23:31

I am using this to render a file to a browser window (a popup) -

send_file('xyz', :type => 'application/pdf', :disposition => 'inline')

By default, the window's title bar shows the host and the name of the
controller action (in FF) or the entire URL (in IE).

Does anyone know of a way to modify the content of the title bar in a
window if it is rendering a file?  The only way that I know to modify
the title is to manipulate the <title> HTML element.  But I'm not
rendering HTML, I'm rendering a PDF.

This topic is locked and can not be replied to.