編集
この質問は次のようにする必要があります。なぜ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
スチルのエラー –
@AnnaBillstromどのバージョンのレールを使用していますか? –