Forum: Ruby on Rails Page with download

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.
3f38541776a2513a20ea2f1c2d522cb3?d=identicon&s=25 Perry Smith (pedz)
on 2009-02-21 23:32
I want to have a single link that displays a page and also starts a
download.  Is that possible?
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-02-22 00:51
(Received via mailing list)
On 21 Feb 2009, at 22:32, Perry Smith wrote:

>
> I want to have a single link that displays a page and also starts a
> download.  Is that possible?

not quite - for a single http request there will be a single response:
either an html page, or a file (or a redirect etc...).

You could serve a page which after a few second redirected to the
download url.

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