title: How to make my background image appear only on one page in rails 4?
body: <p>I have a background image that I can not get to stay just on one page. I have made a welcome controller with one home view to display it.  I am precompiling my assets as well. The background shows up just fine, but my goal is to just show the background image on my home.html.erb view.</p>
  
  <p>welcome/home.html.erb:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="&lt;%= I18n.locale || 'en' %&gt;"    
  
  lang="&lt;%= I18n.locale || 'en'%&gt;"&gt;
  &lt;body class="container"&gt;
  &lt;h1&gt;title&lt;/h1&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>welcome controller:</p>
  
  <pre><code>class WelcomeController &lt; ApplicationController
   def home
   end
  end
  </code></pre>
  
  <p>stylesheets/welcome.css.scss:</p>
  
  <pre><code>body 
  {
  background: {
  image: asset-url("image.jpg");
   }
  }
  </code></pre>
  
  <p>and I have the following in my application layout:</p>
  
  <pre><code>&lt;head&gt;
  &lt;%= stylesheet_link_tag "welcome" if controller_name == "welcome" %&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>and in config/initializers/assets.rb :</p>
  
  <pre><code>Rails.application.config.assets.version = '1.0'
  
  
  Rails.application.config.assets.precompile += %w( welcome.css )
  </code></pre>