编辑
这个问题应该是:为什么rails_admin导致rake asset:precompile
失败?Rails 3.1:为什么rails_admin导致`rake asset:precompile`失败?
我从Rails 3.0升级到3.1并启用资产管道。在某处,rails_admin打破了我的资产预编译:
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
Undefined variable: "$red".
(in /tmp/build_zkm1tzzdhdh6/vendor/bundle/ruby/1.9.1/bundler/gems/rails_admin-a887eee6e916/app/assets/stylesheets/rails_admin/base/theming.css.scss)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
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
这是怎么回事?定义了$red
(在不同的rails_admin .css文件中)。那么theming.css.scss
为什么不能访问呢?我如何避免这种情况?
同样在这里。虽然没有发布,但这是我的解决方案。 – thewillcole 2012-03-19 23:28:11
Stil得到错误 – 2013-10-04 20:40:31
@AnnaBillstrom你使用的是什么版本的rails? – 2013-10-06 04:14:45