How do I set an image form a database using ruby to feature in the background of a div in bootstrap?
<p>This is the code I have I want the image to fill the background of the Thumbnail. typically i would set the background image in CSS but as the image is coming from the Database i'm not 100% what to do. </p>

<pre><code>&lt;div class="row"&gt;
      &lt;div class="col-xs-6 col-md-3"&gt;
        &lt;a href="#" class="thumbnail"&gt;
           &lt;% if property.gallery.photos.size &gt; 0 %&gt;
            &lt;%= image_tag property.gallery.featured.image_url%&gt;
           &lt;% end %&gt;
       &lt;/a&gt;
    &lt;/div&gt;
  ...
&lt;/div&gt;
</code></pre>