Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am getting the page "We're sorry, but something went wrong, when I try to load my rails application. When I run

tail -f log/production.log

I get

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

I have run

 RAILS_ENV=production rake assets:precompile

from the current directory.

like image 899
SilverNightaFall Avatar asked Jun 03 '12 02:06

SilverNightaFall


1 Answers

I found the answer here

Ruby on Rails 3.1 assets:precompile and images

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

like image 168
SilverNightaFall Avatar answered Sep 21 '22 05:09

SilverNightaFall