title: how use html view/partial to pdf view with wicked_pdf gem?
body: <pre><code>def foo    
    respond_to do |format|
      format.html { render layout: 'application' }
      format.pdf { 
        render pdf: 'foo', layout: 'pdf'
      }
    end
  end
  </code></pre>
  
  <p>if I put only <code>hello world</code> in <code>foo.pdf.erb</code> it works !</p>
  
  <p>but now if I want use a html view to iterate on my model (from DB) like :</p>
  
  <pre><code>&lt;p&gt;hello world&lt;/p&gt;    
  &lt;%= render @foo.chapters.order(number: :asc) %&gt;
  </code></pre>
  
  <p>it doest works, the page stay grey, no error in log...</p>
  
  <p>if i comment this line, <code>hello world</code> works again. </p>
  
  <p>So the issu is about using html partial : how can we use the normal html view in pdf view?</p>