How to set a background image on a Rails app using CSS
<p>I'm building a rails app and trying to set a background image for the welcome page. For some reason the image won't show and I'm not sure why. I've looked at numerous questions on here but I'm still unable to resolve.</p>

<p>Here's my latest code -</p>

<p>welcome.css.scss</p>

<pre><code>body {
  background: url('/assets/mamaknowscollage.jpg');
}
</code></pre>

<p>I've also tried (amongst numerous other variations) -</p>

<pre><code>body {
  background-image:  url('/assets/mamaknowscollage.jpg');
}
</code></pre>

<p>Here's the html (the image tag here is for the logo)</p>

<p>welcome.html.erb -</p>

<pre><code>&lt;header&gt;


&lt;/header&gt;
&lt;body&gt;


            &lt;image&gt;&lt;%= link_to image_tag('MamaKnowsLogo.jpg'), root_path, id: "logo" %&gt;&lt;/image&gt;

&lt;/body&gt;
</code></pre>

<p>I've left the url path as is but I've also tried it without assets and it still doesn't work.</p>

<p>Any ideas what I'm doing wrong? </p>