title: Rails - how to get absolute url of an asset in css.erb
body: <p>I want to get the absolute url of an image in my css as follows:</p>
  
  <pre><code>"#{request.scheme}://#{request.host_with_port}/assets/image.png);"
  </code></pre>
  
  <p>But I think request attributes cannot be accessed in css.erb. Can anyone tell me how else can I get the request scheme and host_with_port attributes in my css?</p>