【问题标题】:ActionView::Template::Error (rails.png isn't precompiled)ActionView::Template::Error(rails.png 未预编译)
【发布时间】:2012-06-03 02:15:59
【问题描述】:

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

tail -f log/production.log

我明白了

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

我跑了

 RAILS_ENV=production rake assets:precompile

从当前目录。

【问题讨论】:

    标签: ruby-on-rails ubuntu-11.10 precompile


    【解决方案1】:

    我在这里找到了答案

    Ruby on Rails 3.1 assets:precompile and images

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

    【讨论】:

      猜你喜欢
      • 2012-06-19
      • 2013-07-14
      • 2012-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多