1
필자는 레일 2.0.1과 pow.cx 설치의 최신 버전을 가지고 있으며 나는 config.ru 파일과 관련된 것으로 생각된다. Rails 2.0.1, Pow.cx - config.ru error
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
입니다 :
그래서 ActionController가 초기화되지
# Rails.root/config.ru
require "./config/environment"
run ActionController::Dispatcher.new
, 내 질문이 설정에 초기화 할 필요가 무엇인가? Google을 샅샅이 조사하고 아직 작동하는 설정을 찾지 못했습니다.
도움을 주시면 감사하겠습니다.
정보 poseid를 주셔서 감사합니다. config.ru를 사용하지 않으면 pow.cx가 질문을합니다. 이것이 내가 pow.cx를 사용할 수 없다는 것을 의미합니까? –
예, 제가 아는 한은 랙 애플리케이션 용 NodeJS 기반 서버입니다. Rails 2.0.x 만 사용하기 때문에 Rack 호환 스택을 사용하고 있지 않습니다. – poseid