当我尝试在 heroku 上使用 git 部署 Rails 应用程序时,出现 h10 错误。日志显示它在显示消息的位置退出:
2013-03-14T12:00:24+00:00 app[web.1]: /app/app/uploaders/image_uploader.rb:3:in `<top (required)>': uninitialized constant CarrierWave (NameError)
2013-03-14T12:00:24+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2013-03-14T12:00:24+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:438:in `each'
2013-03-14T12:00:24+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:438:in `block in eager_load!'
有人可以帮我吗?我尝试了很多事情,但似乎找不到解决方案。我的 Gemfile 中有载波 gem,还有一个 image_uploader.rb,就像在 railscasts 上解释的那样