当我尝试在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中有了carrierwave gem,而且像railscasts上解释的那样有一个image_uploader.rb
答案 0 :(得分:0)
你有没有在你的Gemfile中加入gem'carrierwave'?