简体   繁体   English

Heroku Rails设置ActionView :: Template :: Error(未预编译):

[英]Heroku Rails setup ActionView::Template::Error ( isn't precompiled):

I am trying to setup my first Heroku hosted rails app and am running into what I believe is a precompile/pipeline issue. 我正在尝试设置我的第一个Heroku托管rails应用程序,并且遇到了我认为是预编译/管道问题。

I've followed all the appropriate steps: 我已经遵循所有适当的步骤:

bundle exec rake assets:precompile    
git add public/assets
git commit -m "vendor compiled assets"git push heroku

But I am getting the following error: 不过,我收到以下错误:

ActionView::Template::Error ( isn't precompiled):

Note there is a blank (" ") before "isn't precompiled" in the text of the error message - so it is not specifying the name of the missing precompiled file! 请注意,错误消息文本中的“未预编译”之前有一个空格(“”)-因此,它没有指定丢失的预编译文件的名称!

Has anyone run into this before? 有人遇到过吗?

It was due to Carrierwave and one of my Models not having a default image. 这是由于Carrierwave和我的其中一个模型没有默认图像所致。 Not sure I understand why this was an issue - but adding this solved it: 不确定我是否理解这是一个问题-但添加此操作可以解决该问题:

https://github.com/jnicklas/carrierwave#providing-a-default-url

See this previous thread: 参见此先前的线程:

http://stackoverflow.com/questions/11068190/actionviewtemplateerror-isnt-precompiled?lq=1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ActionView :: Template :: Error(未预编译):在heroku雪松上 - ActionView::Template::Error ( isn't precompiled): on heroku cedar ActionView :: Template :: Error(未预编译application.css)Rails - ActionView::Template::Error (application.css isn't precompiled) Rails ActionView :: Template :: Error(未预编译ui.jqgrid)Rails - ActionView::Template::Error (ui.jqgrid isn't precompiled) Rails ActionView :: Template :: Error(未预编译index.css)Rails 3 - ActionView::Template::Error (index.css isn't precompiled) Rails 3 ActionView :: Template :: Error(rails.png未预编译) - ActionView::Template::Error (rails.png isn't precompiled) 随机ActionView :: Template :: Error(未预编译): - Random ActionView::Template::Error ( isn't precompiled): ActionView :: Template :: Error(未预编译): - ActionView::Template::Error ( isn't precompiled): Heroku上的ActionView :: Template :: Error(未预编译vendor / modernizr.js) - ActionView::Template::Error (vendor/modernizr.js isn't precompiled) on Heroku Rails ActionView :: Template :: Error(未预编译google_analytics.js) - Rails ActionView::Template::Error (google_analytics.js isn't precompiled) rails 3.1.0 ActionView :: Template :: Error(application.css未预编译) - rails 3.1.0 ActionView::Template::Error (application.css isn't precompiled)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM