title: Passing instance variable to stylesheet assets
body: <p>How do I pass an instance variable from my controller to my assets stylesheet?</p>
  
  <p>Can I do something like this</p>
  
  <p>preview_controller.rb</p>
  
  <pre><code>def show
   @design = Design.first
  end
  </code></pre>
  
  <p>and my assets file is </p>
  
  <p>preview.css.scss.erb</p>
  
  <pre><code>body{
    background-image: url('&lt;%= @design.image_url.to_s %&gt;');
  }
  </code></pre>