I have a file, a non-ruby executable or zip file, and I want to trigger
the standard "Save file As" dialog.

What is the RoR way to do this?

- - - -

I have scoured the net and the only think I can come up with is some
Javascript that gets triggered when the user clicks on an image.


function my_onclick()
{
    alert('This is an alert');
    var url='/LaunchBrowser.zip';
    // window.location = url
    window.open(url,'Download');
};

The javascript runs but it opens a new browser tab/window with the
following error:

  Routing Error

  No route matches "/LaunchBrowser.zip" with {:method=>:get}

- - - -

Surely there must be a simple way to enable the user to download a file
that they want to get and that I want to give them.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to