title: Download pdf instead of showing it in the browser
body: <p>I am using pdfkit on my rails application (I did this according to Ryan Bates <a href="http://railscasts.com/episodes/220-pdfkit" rel="nofollow">railscast</a>)
  Currently it's showing the pdf inside the browser.</p>
  
  <p>How can the pdf be downloaded instead ? </p>
  
  <p>Thanks </p>
  
  <p>EDIT:</p>
  
  <p>Thanks for the response!</p>
  
  <p>But how can I create the data of the pdf in the controller?</p>
  
  <p>The pdf shows up automatically when the url has <code>.pdf</code>. for example when going to this link:</p>
  
  <pre><code>http://localhost:3000/home/index.pdf
  </code></pre>
  
  <p>It opens a pdf version of the the page automatically on the browser (it's a rails middleware setup). </p>