rails上的ruby AbstractController :: Helpers :: MissingHelperError:缺少帮助文件助手//

我刚从另一台计算机上克隆了我正在处理的存储库。 当我尝试通过运行’rake db:migrate’进行数据库迁移时,我收到以下错误:

AbstractController::Helpers::MissingHelperError: Missing helper file helpers//users/psmith/projects/clie/projectlion/app/helpers/application_helper.rb_helper.rb 

我已经在这里尝试了最常见的答案: Rails:AbstractController :: Helpers :: MissingHelperError – 缺少帮助文件application_helper.rb_helper.rb

它说要在终端中执行以下操作:

 cd ~ mv projects projects1 mv projects1 projects 

我也尝试过:

 sudo ln -s Users users 

但这对我不起作用。 我该怎么办?

更新:

这是我的堆栈跟踪:

 ps-MacBook-Pro:projectlion psmith$ rake db:migrate rake aborted! AbstractController::Helpers::MissingHelperError: Missing helper file helpers//users/psmith/projects/clie/projectlion/app/helpers/application_helper.rb_helper.rb /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:154:in `rescue in block in modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:151:in `block in modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:147:in `map!' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:147:in `modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_controller/metal/helpers.rb:93:in `modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:111:in `helper' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_controller/railties/helpers.rb:17:in `inherited' /Users/psmith/projects/clie/projectlion/app/controllers/application_controller.rb:1:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:480:in `load_missing_constant' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:180:in `const_missing' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in `const_get' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in `block in constantize' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in `each' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in `inject' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in `constantize' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/core_ext/string/inflections.rb:66:in `constantize' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/devise-fea2b95c5fde/app/controllers/devise_controller.rb:2:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:480:in `load_missing_constant' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:180:in `const_missing' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/devise-fea2b95c5fde/app/controllers/devise/sessions_controller.rb:1:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:480:in `load_missing_constant' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:180:in `const_missing' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:55:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:6:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:5:in `' /Users/psmith/projects/clie/projectlion/config/routes.rb:2:in `block in ' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:337:in `instance_exec' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:337:in `eval_block' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:315:in `draw' /Users/psmith/projects/clie/projectlion/config/routes.rb:1:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `block in load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in `block in load_paths' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in `each' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in `load_paths' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:16:in `reload!' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:26:in `block in updater' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/file_update_checker.rb:75:in `call' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/file_update_checker.rb:75:in `execute' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:27:in `updater' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:71:in `block in ' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!' /Users/psmith/projects/clie/projectlion/config/environment.rb:5:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application.rb:276:in `require_environment!' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application.rb:379:in `block in run_tasks_blocks' /Users/psmith/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval' /Users/psmith/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `' LoadError: No such file to load -- /users/psmith/projects/clie/projectlion/app/helpers/application_helper.rb_helper /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:152:in `block in modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:147:in `map!' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:147:in `modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_controller/metal/helpers.rb:93:in `modules_for_helpers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/abstract_controller/helpers.rb:111:in `helper' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_controller/railties/helpers.rb:17:in `inherited' /Users/psmith/projects/clie/projectlion/app/controllers/application_controller.rb:1:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:480:in `load_missing_constant' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:180:in `const_missing' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in `const_get' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in `block in constantize' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in `each' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in `inject' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:236:in `constantize' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/core_ext/string/inflections.rb:66:in `constantize' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/devise-fea2b95c5fde/app/controllers/devise_controller.rb:2:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:480:in `load_missing_constant' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:180:in `const_missing' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/devise-fea2b95c5fde/app/controllers/devise/sessions_controller.rb:1:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:480:in `load_missing_constant' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:180:in `const_missing' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:55:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:6:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:5:in `' /Users/psmith/projects/clie/projectlion/config/routes.rb:2:in `block in ' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:337:in `instance_exec' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:337:in `eval_block' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.4/lib/action_dispatch/routing/route_set.rb:315:in `draw' /Users/psmith/projects/clie/projectlion/config/routes.rb:1:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `block in load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in `block in load_paths' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in `each' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:40:in `load_paths' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:16:in `reload!' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:26:in `block in updater' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/file_update_checker.rb:75:in `call' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/file_update_checker.rb:75:in `execute' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:27:in `updater' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:71:in `block in ' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!' /Users/psmith/projects/clie/projectlion/config/environment.rb:5:in `' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application.rb:276:in `require_environment!' /Users/psmith/.rvm/gems/ruby-2.2.0/gems/railties-4.1.4/lib/rails/application.rb:379:in `block in run_tasks_blocks' /Users/psmith/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval' /Users/psmith/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `' 

我遇到了同样的挑战,在阅读了所有的答案并且没有找到成功之后。 这是我修复错误的方法:

打开Finder并检查我的代码的路径。 我的路径是myMac/Code/my apps

我将Code更改为code并修复了错误。

现在我的路径是myMac/code/my apps

我昨天开始遇到同样的问题,我刚修好了。 在为Xcode 6.3安装命令行工具之后,错误就开始了,并且恢复到Xcode 6.2的命令行工具解决了这个问题。 您可以在此处下载以前版本的DMG: https : //developer.apple.com/downloads/index.action

它似乎是Ruby 2.2。*和Xcode 6.3命令行工具之间的某种冲突 – 希望它能很快得到解决!

我有同样的问题。 当我进行rake test 。 正如在轨道中的这个奇怪错误中所建议的- 缺少帮助器 。 在irb或pry中试试这个:

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

你会得到这样的东西=> "/users/xxxx/Sites/xxxx"

然后在终端中运行pwd并比较路径差异。 你会得到类似这样的东西/users/xxxx/sites/xxxx 。 如果是这种情况,您尝试的上述方法将起作用。 它可能是由ruby 2.2.0或者rails核心问题引起的,它会弄乱网站名称。 所以在像linux或mac这样的区分大小写的操作系统中,它找不到路径。

但如果你不是这样,就像我一样。 我建议你查看你正在使用的ruby版本。 我使用ruby 2.2.0 ,然后切换2.2.1 。 和rails 4.2.0

然后我切换到ruby 2.1.5 。 rails版本。 问题解决了。 我的猜测是ruby出了问题?

在我的情况下,我使用的是Windows。 使用Git shell,我在尝试从thinkbot安装gem管理时不断收到此错误。 不断给我错误的命令“AbstractController :: Helpers :: MissingHelperError”是:

$ rails生成管理:安装

我没有将我的文件夹重命名为小写,因为许多答案已经建议。 我改为使用了窗口的cmd。 它工作得很好。