title: How to inline css when using the rails asset pipeline
body: <p>Instead of having the page include a style tag with a link where to get the css from, which I could add to my view using rails' <code>stylesheet_link_tag</code> helper method, I want to have the css inline directly inside the page.</p>
  
  <p>This is what I came up with so far:</p>
  
  <pre><code>%style(type="text/css")=File.read(physical_asset_path("email.css"))
  </code></pre>
  
  <p>But I can't find any rails' helper method which gives me the physical path of an asset - <code>physical_asset_path</code> is just a dummy method invented by me.</p>
  
  <p>Anybody knows how to get the physical path of an asset when using rails 3.2.x? </p>
  
  <p>Is there an easier/ better way to get stylesheets - from css files inside the common rails assets paths - inline?</p>
  
  <p>Use case: most email clients don't access external sources (like css, images) without user confirmation. So to get the emails properly displayed I need to embed the CSS inside the emails' HTML.</p>