<%= link_to root_path do %>
<div class="">
<div style="background-image:<%= image_tag " image1.png "%>">
</div>
<div>
<h2>Title</h2>
<p>Paragraph</p>
</div>
</div>
<% end %>
My goal is to extract images from the asset pipeline in order to use them as backgrounds. While I could accomplish this through the .sass file, I have chosen to create a template for each one for a more streamlined process.
<div style="background-image:<%= image_tag "image1.png"%>">
This particular line is where I am uncertain about the syntax being used.