Just provide a link with that URL. This is a basic web operation.
What kind of link? <a …> …
Yes. A standard web hyperlink.
In other words: there’s nothing magical about HTML files or images. The
browser is smart enough to do the right thing with any content you
provide – even if that “right thing” is saving for use with another
application.
The reason that it’s so hard to explicitly trigger a Save dialog in the
browser is that there’s never any need to do so!
–
Hassan S. ------------------------ [email protected]
twitter: @hassan
If I make the link
LaunchBrowser.zip
then rails seems to want the link to be http://localhost:3000/marketing/LaunchBrowser.zip
which makes sense because the the file setting up the link to
LaunchBrowser.zip is
F:\Ralph-Rails-Apps\UltraDedup\app\views\marketing\demodownload.haml
Because you haven’t made it “/LaunchBrowser.zip”.
Have you looked at any of your standard css/js/image file URLs
that currently live under RAILS_ROOT/public? Pick one. Look at the
generated markup for that. If that doesn’t answer your questions, ask
again, pasting it in as an example.
When I make that link, i.e.
/public/LaunchBrowser.zip
why is the link going through rails routing?
If I make the link
LaunchBrowser.zip
then rails seems to want the link to be http://localhost:3000/marketing/LaunchBrowser.zip
which makes sense because the the file setting up the link to
LaunchBrowser.zip is
F:\Ralph-Rails-Apps\UltraDedup\app\views\marketing\demodownload.haml
Again, sorry to be so dense.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.