title: Missing Template PDFkit
body: <p>I dropped the gem into the gem file, bundle installed it.</p>
  
  <p>Have this in my application.rb:</p>
  
  <pre><code>require 'pdfkit'
  config.middleware.use PDFKit::Middleware, :print_media_type =&gt; true
  </code></pre>
  
  <p>Doing rake middleware, I see 'use PDFKit::Middleware' in there.</p>
  
  <p>I have this in my routes</p>
  
  <pre><code>match "/option_invoice/view_invoice/(/:id)" =&gt; "option_invoice#view_invoice"
  </code></pre>
  
  <p>Now when I go to <a href="http://0.0.0.0:3000/option_invoice/view_invoice/2.pdf" rel="noreferrer">http://0.0.0.0:3000/option_invoice/view_invoice/2.pdf</a>, I got the missing template error. The page without the .pdf displays perfectly fine.</p>
  
  <blockquote>
    <p>Missing template option_invoice/view_invoice, application/view_invoice with {:formats=>> >[:pdf], :locale=>[:en], :handlers=>[:coffee, :erb, :builder, :arb]}.</p>
  </blockquote>
  
  <p>I'm on rails 3.2.2 if that helps.</p>
  
  <p>Any help?</p>