Walter Davis wrote in post #970659: > On Dec 25, 2010, at 2:41 PM, Ralph Shnelvar wrote: > >> as >> the user sees fit? >> > > Create two separate paths, and on one, force the download by setting > the file-type to application/binary or something equally un-playable.
No! Do not mess with MIME types, ever, for any reason like this. The proper way involves the content-disposition header. > On the other, let the file-type come naturally (default behavior). The > two different paths point to the same file, but one is kinked to > always be something that can't be played in a browser. That is a terrible idea. The point of a MIME type is to tell what the file is, not to play stupid games like these. > > Walter Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] Sent from my iPhone -- 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.

