EDIT
Câu hỏi này phải là: Tại sao rails_admin gây ra rake asset:precompile
không thành công?Rails 3.1: Tại sao rails_admin lại gây ra `rake asset: precompile` thành thất bại?
Tôi đang nâng cấp từ Rails 3.0 lên 3.1 và bật đường ống nội dung. Một nơi nào đó trên đường đi, rails_admin đã phá vỡ phần biên dịch tài sản của tôi:
-----> 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
Điều gì đang xảy ra ở đây? $red
được định nghĩa (trong một tệp rails_admin .css khác). Vậy tại sao không phải là theming.css.scss
có thể truy cập vào nó? Làm cách nào để tránh điều này?
Tương tự ở đây. Mặc dù không được đăng, đây là giải pháp mà tôi đã thực hiện. – thewillcole
Stil gặp lỗi –
@AnnaBillstrom Bạn sử dụng phiên bản nào? –