2012-02-01 2 views
4

Rails의 저작물에 버그가 있습니까? 내가 뭘 잘못하고 있는지 알지 못합니다. 좀 도와 줄 수있어? 내가 온 디맨드 컴파일하고 싶지 않아 ...Ruby on Rails 3.2에서 컴파일 된 저작물이 작동하지 않습니다.

버그 :

Started GET "/" for 127.0.0.1 at 2012-02-02 01:25:44 +0200 
Processing by StaticPagesController#home as HTML 
    Rendered static_pages/home.html.erb within layouts/application (11.8ms) 
    Rendered layouts/_stylesheets.html.erb (3.1ms) 
Completed 500 Internal Server Error in 33ms 

ActionView::Template::Error (blueprint/screen.css isn't precompiled): 
    1: <!--[if lt IE 9]> 
    2: <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> 
    3: <![endif]--> 
    4: <%= stylesheet_link_tag 'blueprint/screen', media: 'screen' %> 
    5: <%= stylesheet_link_tag 'blueprint/print', media: 'print' %> 
    6: <!--[if lt IE 8]><%= stylesheet_link_tag 'blueprint/ie' %><![endif]--> 
    7: <%= stylesheet_link_tag "application", :media => "all" %> 
    app/views/layouts/_stylesheets.html.erb:4:in `_app_views_layouts__stylesheets_html_erb___420254603692159600_23189320' 
    app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3529609308555441821_21997000' 

production.rb 에서 :

config.serve_static_assets = true 
... 
config.assets.precompile += %w(blueprint/screen.css blueprint/print.css blueprint/ie.css) 

production.log에서

Compiled jquery.js (1ms) (pid 14042) 
Compiled jquery_ujs.js (0ms) (pid 14042) 
Compiled static_pages.js (59ms) (pid 14042) 
Compiled users.js (1ms) (pid 14042) 
Compiled application.js (84ms) (pid 14042) 
Compiled layout.css (14ms) (pid 14042) 
Compiled static_pages.css (0ms) (pid 14042) 
Compiled users.css (0ms) (pid 14042) 
Compiled application.css (24ms) (pid 14042) 
Compiled blueprint/ie.css (0ms) (pid 14042) 
Compiled blueprint/print.css (0ms) (pid 14042) 
Compiled blueprint/screen.css (0ms) (pid 14042) 
+0

Jup ... 비슷한 문제가 있습니다. 몽고 빗을 사용하고 있습니까? – xpepermint

+0

아니요, MongoDB를 사용하고 있지 않습니다. –

+0

나는 똑같은 문제를 겪고 있으며, 그냥 포기했다. 나는 심지어이 직업을 전문가 레일 개발자 친구가 사용하여 도울 수 없었습니다. 여기 내 게시가 있습니다. http://stackoverflow.com/questions/10177186/asset-precompilation-error-from-blueprint-css-actionviewtemplateerror-blu –

답변

1

bundle exec rake assets:precompile 다음 필요한 모든 자산이있는 경우 public/assets 폴더를 체크 인하십시오.

+0

동일한 문제가 발생합니다. 예, 자산을 로컬에서 사전 컴파일 할 수 있습니다. 그들은 잘 나타납니다. 내 게시물을보고 문제의 전체 범위를 확인하십시오. http://stackoverflow.com/questions/10177186/asset-precompilation-error-from-blueprint-css-actionviewtemplateerror-blu –

관련 문제