Ruby on rails RubyonRails-Actionpack:错误的参数类型类(预期的模块)(TypeError)

Ruby on rails RubyonRails-Actionpack:错误的参数类型类(预期的模块)(TypeError),ruby-on-rails,ruby,ruby-on-rails-4,heroku,actionpack,Ruby On Rails,Ruby,Ruby On Rails 4,Heroku,Actionpack,我面临Rails和heroku的这个问题: 在我的电脑上,一切正常,但heroku上的同一个应用程序不工作,因为出现以下错误: /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:180:in `include': wrong argument type Class (expected Module) (TypeError) 在这里,我粘贴了完整的堆栈跟踪: $: hero

我面临Rails和heroku的这个问题: 在我的电脑上,一切正常,但heroku上的同一个应用程序不工作,因为出现以下错误:

/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:180:in `include': wrong argument type Class (expected Module) (TypeError)
在这里,我粘贴了完整的堆栈跟踪:

$: heroku run rails console
Running rails console on myapp... up, run.4782
/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:180:in `include': wrong argument type Class (expected Module) (TypeError)
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:180:in `block in add_template_helper'
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:180:in `module_eval'
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:180:in `add_template_helper'
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:109:in `block in helper'
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:108:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:108:in `helper'
    from /app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/railties/helpers.rb:17:in `inherited'
    from /app/app/controllers/application_controller.rb:1:in `<top (required)>'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:360:in `require_or_load'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:317:in `depend_on'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:233:in `require_dependency'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in `block in eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in `eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:346:in `eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
    from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'
    from /app/config/environment.rb:5:in `<top (required)>'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:328:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:328:in `require_environment!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:67:in `console'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
    from /app/bin/rails:8:in `require'
    from /app/bin/rails:8:in `<main>'
$:heroku运行rails控制台
正在myapp上运行rails控制台。。。起来,跑
/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:180:in'include':错误的参数类型类(预期模块)(TypeError)
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:180:“添加模板中的块\u helper”
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:180:in'module\u eval'
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:180:“添加模板\u helper”中
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:109:in'block in helper'
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:108:in'each'
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract\u controller/helpers.rb:108:in'helper'
来自/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action\u controller/railties/helpers.rb:17:in“inherited”
from/app/app/controllers/application\u controller.rb:1:in`'
来自/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:274:in'require'
from/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:274:in'block in require'
来自/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:240:in'load\u dependencity'
来自/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:274:in'require'
来自/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:360:“需要或加载”中
来自/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:317:in'dependent\u'
来自/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active\u support/dependencies.rb:233:in“require\u dependencity”
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:472:in'block(2层)in eager_load!'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in'each'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in'block in eager_load!'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in'each'
来自/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in'eager_load!'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:346:in'eager_load!'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in'each'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in'block-in'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in'instance_exec'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in'run'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:“运行中的块初始化器”
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in'block in tsort_each'
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `每个强连接的\u组件中的块(2个级别)'
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in'each_强连接_component_from'
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in“每个强连接的组件中的块”
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:在'each'中
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in'call'
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:“每个强连接的组件”
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in'tsort_each'
from/app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in'tsort_each'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in'run_initializers'
来自/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:352:in'initialize!'
from/app/config/environment.rb:5:in`'
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:328:in'require'
来自/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:328:in'require_environment!'
来自/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands\u tasks.rb:142:in“require\u application\u and\u environment!”
from/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:67:in'console'
来自/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands\u tasks.rb:39:in'run\u command!'
来自/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in`'
from/app/bin/rails:8:in'require'
from/app/bin/rails:8:in`'
我想不出会是什么


您能给我一些帮助吗?

错误表明其中一个帮助文件被定义为类而不是模块

class ApplicationHelper
end

vs.

module ApplicationHelper
end

你可以发布应用程序控制器中的内容吗?非常简单的应用程序控制器:
class ApplicationController