title: Sprocket Error - Asset was not declared to be precompiled in production
body: <p>I'm using rails 5.2.0 and I got this error: <code>Sprockets::Rails::Helper::AssetNotPrecompiled - Asset was not declared to be precompiled in production</code> when I open my page home. </p>
  
  <p>I have already set <code>Rails.application.config.assets.precompile += %w( home.css, home.coffe )</code> but this error still comes.</p>
  
  <p>Here is my <code>application.html.rb</code></p>
  
  <pre><code>&lt;%= stylesheet_link_tag    'application'%&gt;
  &lt;%= stylesheet_link_tag    params[:controller] %&gt;
  &lt;%= javascript_include_tag 'application'%&gt;
  &lt;%= javascript_include_tag params[:controller]%&gt;
  </code></pre>
  
  <p></p>
  
  <p>My intentions are to load only the scss and js specific of each controller.</p>