耙子流产! “filter:progid”之后的CSS无效:期望“;”,是“:DXImageTransfo ...”

时间:2012-03-07 02:16:50

标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 heroku

当我做git push heroku master时,我得到......

mkdir -p /tmp/build_klvg6evbve3x/public/assets
mkdir -p /tmp/build_klvg6evbve3x/public/assets
(in /tmp/build_klvg6evbve3x)
mkdir -p /tmp/build_klvg6evbve3x/public/assets
mkdir -p /tmp/build_klvg6evbve3x/public/assets
mkdir -p /tmp/build_klvg6evbve3x/public/assets
mkdir -p /tmp/build_klvg6evbve3x/public/assets
mkdir -p /tmp/build_klvg6evbve3x/public/assets
mkdir -p /tmp/build_klvg6evbve3x/public/assets
rake aborted!
Invalid CSS after "  filter: progid": expected ";", was ":DXImageTransfo..."
(in /tmp/build_klvg6evbve3x/app/assets/stylesheets/application.css)
.............
Precompiling assets failed, enabling runtime asset compilation
Injecting rails31_enable_runtime_asset_compilation
Please see this article for troubleshooting help:
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
-----> Rails plugin injection
Injecting rails_log_stdout
Injecting rails3_serve_static_assets
-----> Discovering process types
Procfile declares types      -> web
Default types for Ruby/Rails -> console, rake, worker
-----> Compiled slug size is 39.4MB
-----> Launching...
!Heroku push rejected due to an unrecognized error.
!We've been notified, see http://support.heroku.com if the problem persists.

然后到......

To git@heroku.com:testapp.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:testapp.git'

我的application.css中没有任何内容":DXImageTransfo...",所以我不确定是什么时候发生的。

现在这是一个问题,因为使用Twitter Bootstrap和Simple_form,我的表单搞砸了,我认为这就是原因。有任何解决这个问题的方法吗?这是怎么回事?

2 个答案:

答案 0 :(得分:15)

尝试更改以下css代码:

filter: progid: DXImageTransform.Microsoft.gradient(enabled=false);

filter: unquote("progid:DXImageTransform.Microsoft.gradient(enabled=false)");

答案 1 :(得分:3)

这似乎是Microsoft Gradients的一个问题。基于我的css文件中只有Microsoft渐变,我不断收到错误。我通过将它们全部删除来解决这个问题。