title: Adding page-specific CSS to Rails Asset Pipeline
body: <p><em>This is a question that several people have asked before, but none of the questions were quite asked or answered in a way that I found helpful, so I'm writing the question and answer that I would have found helpful.</em></p>
  
  <hr>
  
  <p>I have a Rails 3.1+ app using the asset pipeline. There's one specific action that I want to have use different CSS. (In my specific case, I have a page that is intended to be printed, so it truly needs completely different CSS and does not need any Javascript.) Currently, I have only one application-specific CSS file. How do I add the new CSS file and direct the asset pipeline to use my file?</p>
  
  <p>For example, right now, my <code>app/assets</code> looks like</p>
  
  <pre><code>app/assets
      /javascript
          application.js
          custom.js.coffee
      /css
          application.css
          custom.css.scss
  </code></pre>
  
  <p>I want to add a <code>print.css</code> file that is used by the view of a specific action. This view will not use the <code>application.css</code> file. How do I add <code>print.css</code>?</p>