I understand that rails assets eg. an image in assets/images/ get a cache helper number appended to them ie. background.jpg may become background77bfb376c1e.jpg and therefore, a helper must be used to reference them e.g.
asset-url("background.png", image)
However.. How could I reference background.jpg in a HTML tag such as this:
<header class="pt100 pb100 parallax-window-2" data-image-src="background.jpg">
? Apologies in advance if the solutions is obvious ...
data-image-src="/assets/images/background.jpg"?image_taglike so<header class="pt100 pb100 parallax-window-2" data-image-src="<%= image_tag(background) %>">