I am really new to this, so please excuse me if this is a dumb question. I am saving some data using ruby on rails and one of those fields is a background for the divs I am rendering back on load. I created the partial layouts successfully but I have no clue how to embed the background into the div using the ruby variable.
So this is what I would do in jQuery
<div id="bubble" class="bubble" style="background:' + icon + '"></div>
My ruby field is <% event.icon %> ... how do I add it to this div ?
Thank you so much !