rails - How to show an image as background in a style tag?
<p>I am currently developing a rails application. I am trying to show an image on background in html.erb file yet I cannot do this. I use following up code:</p>

<pre><code>&lt;header class="intro-header" style="background-image: &lt;%= asset_path('home-bg.jpg') %&gt;"&gt;
</code></pre>

<p>What's the mistake I did? Can anyone explain this?</p>

<p>Thanks,
Bartu </p>