title: How do I create a printer friendly HTML page?
body: <p>How do I change or remove layouts from my application on a specific Rails view to allow my users to have a more enjoyable printing experience? (No navbar, or other extra data)</p>
  
  <p>I have been banging my head against the table for a few hours now trying to figure this out. I have tried using <code>render layout: false</code> with no success.</p>
  
  <p>I have tried creating an action like below but it didn't work for me either:</p>
  
  <pre><code>def print
    respond_to do |format|
      format.html { render layout: false } 
    end
  end
  </code></pre>
  
  <p>I tried linking to this action by using the following:</p>
  
  <p><code>&lt;%= link_to 'Printer Friendly Version', product_path(@product), :action =&gt; 'print', target: '_new' %&gt;</code></p>
  
  <p>Am I just completely off base here? How can I better approach this obstacle?
  I do not want to use PDF or Javascript, I just want to render printer-friendly HTML.</p>