2013-02-13 2 views
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을 샅샅이 조사하고 아직 작동하는 설정을 찾지 못했습니다.

도움을 주시면 감사하겠습니다.

답변

1

흠 .. 내 생각 엔 적어도 실행 랙 미들웨어를 가지고 2.3 레일 당신이 당신의 config.ru 할 수있는 2.3보다 이전 레일, 그래서

http://edgeguides.rubyonrails.org/2_3_release_notes.html

를 참조 사용할 필요가 있다는 것 사용하지 마십시오.

+0

정보 poseid를 주셔서 감사합니다. config.ru를 사용하지 않으면 pow.cx가 질문을합니다. 이것이 내가 pow.cx를 사용할 수 없다는 것을 의미합니까? –

+0

예, 제가 아는 한은 랙 애플리케이션 용 NodeJS 기반 서버입니다. Rails 2.0.x 만 사용하기 때문에 Rack 호환 스택을 사용하고 있지 않습니다. – poseid