我正在使用jquery-ui-rails gem。它在本地主机上运行良好,但是当我推送到 heroku 时,它会显示 heroku 日志:
2012-04-11T02:28:59+00:00 app[web.1]: ActionView::Template::Error (couldn't find file 'jquery.ui.slider'
2012-04-11T02:28:59+00:00 app[web.1]: (in /app/app/assets/stylesheets/application.css:12)):
我的生产配置文件:
config.cache_classes = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = true
config.assets.compress = true
config.assets.compile = true
config.assets.digest = true
网上有些问题说要改成config.assets.compile
false,但是当我这样做时,我得到了一个application.css not precompiled
错误。