我有 rails 2.0.1 和最新版本的 pow.cx 设置,我收到一个错误,我认为它与 config.ru 文件有关:
NameError: uninitialized constant ActionController::Dispatcher
~/repos/selfsale-001/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'
~/repos/selfsale-001/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'
~/repos/selfsale-001/config.ru:3
~/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval'
~/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/builder.rb:4:in `initialize'
~/repos/selfsale-001/config.ru:1:in `new'
~/repos/selfsale-001/config.ru:1
我config.ru
的是:
# Rails.root/config.ru
require "./config/environment"
run ActionController::Dispatcher.new
所以 ActionController 没有初始化,我的问题是这个设置需要初始化什么?我已经搜索了谷歌,但还没有找到一个有效的配置。
任何帮助将不胜感激。