更新:问题解决了,但论坛不让我回答。请参阅下面的评论。
我已经预编译了我的资产。他们public/assets
按预期出现。我的应用程序中也有tmp/restart.txt
(因为我使用的是Passenger)。
然而,我的生产日志文件中不断出现同样的ActionView::Template::Error (application.css isn't precompiled):
错误。
更重要的是?作为最后的努力,我完全删除了要求任何 css 的行,但它仍然给出完全相同的错误。
拆线前:
Started GET "/" for 68.57.46.75 at 2013-07-24 22:35:14 +0000
Processing by EpisodesController#home as HTML
Rendered episodes/_feature.html.erb (1.7ms)
Rendered episodes/_feature.html.erb (1.1ms)
Rendered episodes/home.html.erb within layouts/application (4.1ms)
Completed 500 Internal Server Error in 6ms
ActionView::Template::Error (application.css isn't precompiled):
5: <meta name="viewport" content="width=device-width">
6:
7: <title>The Only Podcast on the Internet<%= @page_title ? ' - ' + @page_title : '' %></title>
8: <%= stylesheet_link_tag "application", :media => "all" %>
9: <%= javascript_include_tag "application" %>
10: <%= csrf_meta_tags %>
11:
app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb__3061238341936562138_19571120'
拆线后:
Started GET "/" for 68.57.46.75 at 2013-07-24 22:44:28 +0000
Processing by EpisodesController#home as HTML
Rendered episodes/_feature.html.erb (1.8ms)
Rendered episodes/_feature.html.erb (1.3ms)
Rendered episodes/home.html.erb within layouts/application (4.9ms)
Completed 500 Internal Server Error in 7ms
ActionView::Template::Error (application.css isn't precompiled):
5: <meta name="viewport" content="width=device-width">
6:
7:
8:
9: <meta property='og:image' content="<%= @page_image ? @page_image : $site_image %>" />
10: <meta property='og:url' content="<%= request.protocol+request.host_with_port+request.fullpath %>" />
11: <meta property='og:title' content="The Only Podcast on the Internet<%= @page_title ? ': ' + CGI::escapeHTML(@page_title) : '' %>" />
app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb__3061238341936562138_19571120'
我的意思是,圣牛。它抛出与错误源相同的行并在那里打印出一个空行。有没有人见过这个?