ruby on rails AbstractController::Helpers::MissingHelperError: Missing helper file helpers//

ⅰ亾dé卋堺 提交于 2019-12-06 09:09:43
user5011892

I was having the same challenge and after reading all of the answers and finding no success. This is how I fixed the error:

Open Finder and checked the path to my code. My path was myMac/Code/my apps.

I changed the Code to code and that fixed the error.

Now my path is myMac/code/my apps.

I had the same problem starting yesterday, and I just fixed it. The error started for me after I installed the command line tools for Xcode 6.3, and reverting back to command line tools for Xcode 6.2 resolved the issue. Here's where you can download the DMG for the previous version: https://developer.apple.com/downloads/index.action

It seems to be some sort of conflict between Ruby 2.2.* and Xcode 6.3 command line tools - hopefully it'll get fixed properly soon!

Edmund Lee

I have this same issue. When I run rake test. As suggested in this Strange error in rails - missing helper. Try this in irb or pry:

pry(main)> File.expand_path('./')

You will get something like this => "/users/xxxx/Sites/xxxx"

Then run pwd in your terminal and compare the path difference. You will get something like this /users/xxxx/sites/xxxx. If this is the case, the above method you tried will work. It due to possible ruby 2.2.0 or rails core issue where it messes up and capitalize the site name. So in a case sensitive OS like linux or mac, it won't find the path.

But if this is not the case for you, just like me. I suggest you check what version of ruby you are using. I was using ruby 2.2.0, then switch 2.2.1. And rails 4.2.0.

Then I switch to ruby 2.1.5. rails version stays. Problem was solved. My guess is that was a problem with ruby?..

in my case i was using windows. Using Git shell, i kept getting this error while trying to install the gem administrate from thoughtbot. The command that kept giving me the error,"AbstractController::Helpers::MissingHelperError", was:

$ rails generate administrate:install

I did not rename my folder's to lowercase as many answers have suggested. I instead used the window's cmd. It worked perfectly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!