title: Setting Content-Disposition to attachment using Ruby on Rails and Paperclip
body: <p>I have a – hopefully small – problem.</p>
  
  <p>I am using Ruby on Rails and Paperclip to handle file uploads.
  Now I want to automatically set the Content-Disposition header to "attachment" so that when the user clicks a link, the file is downloaded instead of shown directly in the browser.</p>
  
  <p>I found the following solution for Amazon S3:
  <a href="https://stackoverflow.com/questions/4811906/download-file-on-click-ruby-on-rails">Download file on click - Ruby on Rails</a></p>
  
  <p>But I don't use S3.
  Can anybody help?</p>
  
  <p>Thanks in advance,
  /Lasse</p>