Rails: AbstractController::Helpers::MissingHelperError - Missing helper file application_helper.rb_helper.rb

后端 未结 13 2008
庸人自扰
庸人自扰 2020-12-09 04:18

Can\'t find any resource that\'s helped me in this! When I try to \'rails s\' and go to any page of the app; it shoots me this error page saying I am missing helper files.

13条回答
  •  爱一瞬间的悲伤
    2020-12-09 04:41

    I started getting the same missing helper message when running tests, even though my app ran OK in dev mode. And this started right after I had run my tests successfully, with no system changes that I was aware of. After trying the suggestion to remove uppercase filenames from my path without success, I ran rvm, in my case

    rvm use ruby-2.2.0@rails4.2
    bundle install
    

    The problem went away. I suspect my system had rebooted and started using some incompatible system Ruby module. I am a beginner working my way through Michael Hartl's rails tutorial on OS X 10.10.3.

提交回复
热议问题