title: How to set image as a background from database in rails
body: <p>i'm a beginner in ruby on rails. so far I can only make a "create, show, delete, update data, and file upload using carrierwave" and I have problem when I want to set a image as background from database.</p>
  
  <p>i use carrierwave for image uploader and the image save in <strong>public/uploads/user/picture/</strong> and this part of <strong>show.html.erb</strong></p>
  
  <pre><code>&lt;p&gt;
    &lt;strong&gt;Image:&lt;/strong&gt;&lt;br&gt;
    &lt;%= image_tag @user.picture.thumb.url %&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>then I have <strong>home.html.erb</strong></p>
  
  <pre><code>&lt;div class="img-fill" style="background-image: url('..');"&gt;&lt;/div&gt;
  </code></pre>
  
  <ol>
  <li>how to make an image into the background on the page <strong>home.html.erb</strong> of image I choose?</li>
  <li>What code should I add on show.html.erb to instruct the image used as background in home.html.erb?
  thx</li>
  </ol>