title: Ruby on Rails, image compilation and precompilation
body: <p>I just deployed a rails app and I am having an error when I load a page saying: </p>
  
  <pre><code>We're sorry, but something went wrong.
  </code></pre>
  
  <p>In the production.log I see that message:</p>
  
  <pre><code>Started GET "/" for 128.179.252.130 at 2014-11-30 08:32:28 +0000
  Processing by StaticPagesController#home as HTML
    Rendered static_pages/home.html.erb within layouts/application (0.4ms)
    Rendered layouts/_shim.html.erb (0.0ms)
    Rendered layouts/_header.html.erb (2.4ms)
  Completed 500 Internal Server Error in 4ms
  
  ActionView::Template::Error (./icons/icon_nameplate.png isn't precompiled):
  37:&lt;ul class="dropdown-menu"&gt;
  38:
  39:&lt;li&gt;
  40:    &lt;%= menu_dropdown('Profile', "./icons/icon_nameplate.png", "Nameplate Icon", current_user) %&gt;
  41:&lt;/li&gt;
  </code></pre>
  
  <p>So I believe the error comes from this part of the message:</p>
  
  <pre><code>./icons/icon_nameplate.png isn't precompiled
  </code></pre>
  
  <p>I searched the internet, found three possible solution, none of which did work:</p>
  
  <pre><code>1. config.assets.compile = true (in production.rb file)
  2. config.assets.precompile += %w[*.png *.jpg *.jpeg *.gif] (still in production.rb file)
  3. bundle exec rake assets:precompile RAILS_ENV=production
  </code></pre>
  
  <p>All of this changed absolutely nothing, and the website still shows the same error. So I am turning for you to help.</p>
  
  <p>Thank you very much in advance.</p>