Backstory : 일부 친구와 저는 앱에서 작업 중이며 다른 페이지에서 처리 할 항목을 여러 개 선택하려고했습니다. RailsCast #165을 찾기 전에 지점을 만들고 3 개의 체크 박스가있는 테이블에 대한 비계를 추가하여 생성 된 코드가 어떻게 보이는지 확인했습니다. RC165에서 정답을 찾았을 때, 모든 코드와 마이그레이션을 삭제하고, 모든 작업을 포기할 것입니다.초기화되지 않은 상수 ActionController
아아아, 나는 그것에 대한 참조가 어떤 지점에서도 전혀 아무것도하지 못하게 막을 수 없으므로 나을 수없는 것처럼 보입니다. 언제 "레이크 dB : 마이그레이션"또는 "레일의"또는 아무것도, 내가 얻을 ...
uninitialized constant ActionController::MimeResponds::ChecksHelper (NameError)
... 문자열 "확인이"어디서나 내 프로젝트 디렉토리에 나타나지 않는 경우에도. 나는에 관해서는 지금까지 갔을 :
- 디렉토리 이름을 바꾸고 GitHub의에서 새 프로젝트를 복제 (참고 : 내 실험은, 로컬 파일 시스템 수준에서도 최선을 다하고 결코 더 적은을 추진).
- 불어 멀리 위해 Postgress 개발 및 테스트 데이터베이스
하고, rbenv, 즉 근본적으로 기계를 긁어내는 것.
난처한 코드를 그냥 버리면 어렵다는 것을 믿을 수 없습니다.
이 문제를 해결하거나 미래에이를 피하는 방법에 대한 제안은 언제든지 환영합니다.
- 베른
은스택 추적은 다음과 같습니다
Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ git branch
* master
Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ rails s
=> Booting WEBrick
=> Rails 3.2.11 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb:11:in `<module:MimeResponds>': uninitialized constant ActionController::MimeResponds::ChecksHelper (NameError)
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb:6:in `<module:ActionController>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb:5:in `<top (required)>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/base.rb:196:in `<class:Base>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/base.rb:171:in `<module:ActionController>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/base.rb:3:in `<top (required)>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/sorcery-0.8.1/lib/sorcery/engine.rb:11:in `block in <class:Engine>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config/environment.rb:5:in `<top (required)>'
from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config.ru:3:in `block in <main>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config.ru:in `new'
from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config.ru:in `<main>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands/server.rb:46:in `app'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands/server.rb:70:in `start'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ rake db:migrate
rake aborted!
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3. Using bundle exec may solve this.
/Users/vern/RoR/Portfolio-Project-1-User-Stories/config/boot.rb:6:in `<top (required)>'
/Users/vern/RoR/Portfolio-Project-1-User-Stories/config/application.rb:1:in `<top (required)>'
/Users/vern/RoR/Portfolio-Project-1-User-Stories/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ bundle exec rake db:migrate
rake aborted!
uninitialized constant ActionController::MimeResponds::ChecksHelper
/Users/vern/RoR/Portfolio-Project-1-User-Stories/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
그것이 원인이 설치되어 보석이 될 수 문제? 보석을 날려 버리거나 다시 묶을 수 있습니까? – Phil
컨트롤러에'respond_with' 또는'respond_to' 호출이 있습니까? –
보고 ... 나는 respond_to 호출을 소수만 가지고있다. 컨트롤러와 관련된 모델 외부의 어떤 참조도 만들지 않는다. 즉, 어디서나 "확인"을하지 않는다. config/initializers/mime_types.rb는 (오류 메시지가 주어지면) 더 깔끔한 내용이지만 주석을 모두 달고 있습니다. 편집하고 다시 되 돌리는 것을 기억하지 않으며, 내가 가진 어떤 이유도 생각할 수 없습니다. 나는 멈추고 여러 번 서버를 시작하려고했습니다. 등록 된 쓰레기는 어디에 보관해야합니까? – vemcg