title: Use Rails 3.1 Asset Paths in a SCSS Partial
body: <p>I have the following setup:</p>
  
  <pre><code>app/assets/stylesheets/application.css.scss
  
  /*
  *= require_self
  *= require fancybox
  */
  
  /* COLORS.. */
  /* MIXINS... */
  /* FONT STACKS... */
  
  /* IMPORTS */
  @import "reset";
  @import "supergrid";
  @import "rails";
  @import "app";
  @import "forms";
  @import "layout";
  </code></pre>
  
  <p>In my various partials I'm having a real problem with the asset paths. When inside <code>application.css.scss</code> or anything loaded by the manifest, I can use:</p>
  
  <pre><code>.example { background-image: image-path("background.png"); }
  </code></pre>
  
  <p>However, when I'm using a partial, such as my <code>_layout.css.scss</code> partial, when I try the same thing the background-image property is simply omitted from the compiled file. It seems the SCSS asset helpers are not available inside partials?</p>
  
  <p>Has anyone gotten this to work, am I missing something obvious? Or is it simply impossible to use asset helpers in partials? If so this is a major, MAJOR problem, as my entire app structure depends on SCSS variables and mixins which are shared among the partials.</p>
  
  <p>I know that variables and mixins are not shared across the sprockets manifest, so if partials cannot access the asset helpers then I'm looking at having to concatenate everything into a single scss file, which pretty much defeats the purpose of both Sass and Sprockets.</p>
  
  <p>Any help would be very much appreciated!</p>