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

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.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2007-03-16 22:31
All,

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.

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