2012-10-17 58 views
1

升級到3.2導軌我得到這個錯誤在rake assets:precompile的Rails 3.2青菜錯誤

Invalid CSS after "*": expected "{", was "html .fileinput..." 

這裏後跟蹤:http://paste.ubuntu.com/1285319/

application.css幾乎是默認:

/* 
* This is a manifest file that'll automatically include all the stylesheets available in this directory 
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at 
* the top of the compiled file, but it's generally better to create a new file per style scope. 
*= require_self 
*= require_tree . 
*/ 

顯然它不喜歡在CSS中的評論,是否有一些改變,在SASS或Rails我沒有注意到?

這裏有青菜的版本:

sass (3.2.1) 
sass-rails (3.2.5) 
    railties (~> 3.2.0) 
    sass (>= 3.1.10) 
    tilt (~> 1.3) 
+0

可以粘貼你的CSS文件,其中包含'html .fileinput ...'? –

+0

我不知道你是什麼意思...樣式表插入'<%= stylesheet_link_tag「應用程序」%>'標準方式 – Tombart

+0

'assets/stylesheets'中是否還有其他文件? Rails不能反對CSS中的評論,在這方面沒有任何改變。 –

回答

1

錯誤是由該行jquery.fileupload-ui.css引起的(jQuery的文件上傳UI插件CSS 6.3)

/* Fix for IE 6: */ 
*html .fileinput-button { 
    line-height: 22px; 
    margin: 1px -3px 0 0; 
}