ActionView :: Template :: Error(rails.png未预编译)

时间:2021-02-09 20:42:02

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

我收到页面“我们很抱歉,但是当我尝试加载我的rails应用程序时出现了问题。当我运行时

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.

从当前目录。

1 个解决方案

#1


17  

I found the answer here

我在这里找到了答案

Ruby on Rails 3.1 assets:precompile and images

Ruby on Rails 3.1资产:预编译和图像

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

在/ current / config / environments中的production.rb文件中将config.assets.compile = false更改为config.assets.compile = true

#1


17  

I found the answer here

我在这里找到了答案

Ruby on Rails 3.1 assets:precompile and images

Ruby on Rails 3.1资产:预编译和图像

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

在/ current / config / environments中的production.rb文件中将config.assets.compile = false更改为config.assets.compile = true