我刚刚从另一台计算机克隆了一个我正在处理的存储库。当我尝试通过运行 '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 - Missing helper file 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 `<top (required)>'
/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 `<top (required)>'
/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 `<top (required)>'
/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 `<module:Devise>'
/Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:6:in `<module:ActiveAdmin>'
/Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:5:in `<top (required)>'
/Users/psmith/projects/clie/projectlion/config/routes.rb:2:in `block in <top (required)>'
/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 `<top (required)>'
/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 <module:Finisher>'
/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 `<top (required)>'
/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 `<main>'
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 `<top (required)>'
/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 `<top (required)>'
/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 `<top (required)>'
/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 `<module:Devise>'
/Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:6:in `<module:ActiveAdmin>'
/Users/psmith/.rvm/gems/ruby-2.2.0/bundler/gems/activeadmin-3f916d6bee73/lib/active_admin/devise.rb:5:in `<top (required)>'
/Users/psmith/projects/clie/projectlion/config/routes.rb:2:in `block in <top (required)>'
/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 `<top (required)>'
/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 <module:Finisher>'
/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 `<top (required)>'
/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 `<main>'