好吧,我只是改变了我的shell来使用fish而不是oh-my-zsh。我删除了oh-my-zsh,一切都搞砸了。所以我安装了rails和bundle安装了我的应用程序,但是当我尝试加载服务器时,我收到了这个错误。
testset, testcase = re.search('(.*)\.(.*)-.*', a).group(1, 2)
testset += '.py'
它指向/Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:40:in `<module:Helpers>': uninitialized constant ActionView::Helpers::ActiveModelHelper (NameError)
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:4:in `<module:ActionView>'
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:3:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/base.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/view_paths.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:204:in `<class:Base>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:164:in `<module:ActionController>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders/controller_method.rb:37:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders.rb:15:in `require'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders.rb:15:in `<module:Responders>'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders.rb:9:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in `each'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in `block in require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:in `each'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler.rb:134:in `require'
from /Users/jay/current_projects/s/config/application.rb:9:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
,但我使用rbenv。我不确定它是否应该在rbenv内部查看。
答案 0 :(得分:0)
D-side在评论中给出了上述链接。
https://github.com/sstephenson/rbenv/issues/195
将这些填充程序添加到我的config.fish修复了问题:
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1