I'm just adapting template code to a Rails web app.
I've got inline CSS referencing image assets like this:
<div class="head" style="background-image: url('../somepath/b43.jpg');">
I'd like to store and reference images in the asset pipeline. I've used helpers like image_path before, but only in Sass files.
How do I write code that looks something like:
<div class="head" style="background-image: url(image_path('b43.jpg'));">
that the inline CSS (using Rails asset helper) gets emitted with actual image asset folder paths when the page is rendered?
Right now, I'm just getting:
<div class="head" style="background-image: url(image_path('b43.jpg'));">
in the HTML.