-2

将我的应用程序添加到 heroku 时出现下一个错误,

/app/app/controllers/networks_controller.rb:1:in `<top (required)>': uninitialized constant BaseController (NameError)
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:417:in `block (2 levels) in eager_load!'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:416:in `each'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:416:in `block in eager_load!'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:414:in `each'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:414:in `eager_load!'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/application/finisher.rb:51:in `block in <module:Finisher>'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/config.ru:4:in `block in <main>'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/config.ru:1:in `new'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/config.ru:1:in `<main>'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:40:in `eval'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:40:in `parse_file'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:200:in `app'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands/server.rb:46:in `app'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:301:in `wrapped_app'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:252:in `start'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands/server.rb:70:in `start'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:54:in `block in <top (required)>'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'
2012-05-21T16:59:06+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'
2012-05-21T16:59:06+00:00 app[web.1]:   from script/rails:6:in `require'
2012-05-21T16:59:06+00:00 app[web.1]:   from script/rails:6:in `<main>'
2012-05-21T16:59:07+00:00 heroku[web.1]: Process exited with status 1
2012-05-21T16:59:07+00:00 heroku[web.1]: State changed from starting to crashed
4

1 回答 1

1

所以你networks_controller继承自BaseController. 是BaseController添加到git吗?

你能提供更多信息吗?至少有一个来源NetworksController

于 2012-05-21T17:13:11.303 回答