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

Sil*_*all 5 ruby-on-rails precompile ubuntu-11.10

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

tail -f log/production.log
Run Code Online (Sandbox Code Playgroud)

我明白了

ActionView::Template::Error (rails.png isn't precompiled)
Run Code Online (Sandbox Code Playgroud)

我跑了

 RAILS_ENV=production rake assets:precompile
Run Code Online (Sandbox Code Playgroud)

从当前目录.

Sil*_*all 17

我在这里找到了答案

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

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