title: Rails dumping a file as the response
body: <p>Im from a PHP background so I know this is possible. I'm not sure how to do it in rails though.</p>
  
  <p>Basically instead of outputting text I'd like to output a binary stream (basically a file) and throw in a <code>Content-Type: audio/mpeg</code> as well as a <code>Content-Disposition</code> header so the browser accepts it as a download</p>
  
  <p>I also have this in a variable that I'd like to print as the binary stream without writing the file to disk.</p>