In my css I have this:
.inner-class {
content: '';
}
.inner-class:before {
background: url(http://www.fillmurray.com/500/500.jpg);
content: '';
}
And in my view's html.erb, I have this:
<div class="outer-class">
<div class="inner-class">
::before
</div>
</div>
I want to change the ::before selector's properties using Rails. Normally, I would do something like this:
<div class="outer-class">
<div class="inner-class" style:"background: url(<% image_path %>)">
::before
</div>
</div>
However, that won't change the properties of inner-class:before. How do I do this?