ActionView :: Template :: Error (rails.png not precompiled)

I get the page “We're sorry, but something went wrong when I try to download the rails app. When I start

tail -f log/production.log

I get

ActionView::Template::Error (rails.png isn't precompiled)

I launched

 RAILS_ENV=production rake assets:precompile

from the current directory.

+5
source share
1 answer

I found the answer here

Ruby on Rails 3.1: Precompilation and Images

change config.assets.compile = false to config.assets.compile = true in the production.rb file in / current / config / environment

+17
source

All Articles