title: Sprockets Rails Helper Asset Not Precompiled even though declared in config/initializers/assets.rb
body: <p>I have a rails API with a mailer. In my mailer layout, I include an image :</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;%= image_tag "quickbed_logo" %&gt;
      &lt;%= yield %&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>that is stored in app/assets/images.</p>
  
  <p>However when I m sending the email I get :</p>
  
  <pre><code>Sprockets::Rails::Helper::AssetNotPrecompiled - Asset was not declared to be precompiled in production.
  Add `Rails.application.config.assets.precompile += %w( quickbed_logo )` to `config/initializers/assets.rb` and restart your server:
  </code></pre>
  
  <p>I complied with the error message and added  <code>Rails.application.config.assets.precompile += %w( quickbed_logo )</code> to <code>config/initializers/assets.rb</code></p>
  
  <p>However I still get the error. What am I doing wrong ?</p>