升级到rails 3.2后,我在rake assets:precompile
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的版本:
sass (3.2.1)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
答案 0 :(得分: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;
}