1

升级到 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)
4

1 回答 1

1

该错误是由jquery.fileupload-ui.css(jQuery File Upload UI Plugin CSS 6.3)中的这一行引起的

/* Fix for IE 6: */
*html .fileinput-button {
  line-height: 22px;
  margin: 1px -3px 0 0;
}
于 2012-10-17T18:21:34.593 回答