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