2015-05-19 12 views
0

好的,以及我只是改变了我的外壳,而不是使用oh-my-zsh的鱼。我删除了哦,我的ZSH,一切都有点搞砸了。所以我安装了rails和bundle,安装了我的应用程序,但是当我尝试加载服务器时出现这个错误。切换我的外壳鱼,现在轨道不会加载服务器。我怎样才能让它运行?

/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>' 

它指向/Library/Ruby/Gems/2.0.0/gems/在这里,但我使用rbenv。我不确定它是否应该在rbenv里面寻找。

+0

嗯,是啊,'rbenv fish'在谷歌输出结果的一大堆...即,[此] (https://github.com/sstephenson/rbenv/issues/195).I使用RVM,如果事实证明可行,请随时自行发布答案。 –

+0

谢谢,我从来没有真正定制过shell,并且zsh已经有一年多了。所以当我尝试鱼时,速度要快得多,但我不知道为什么一切都被打破了。感谢您的链接,但解决了我的问题。 – Jay

+0

是的,目前也使用zsh,但考虑一个开关。 Zsh与抗原岩石,但鱼引起了我的注意与它的“阴影自动完成”。如果有一天我可以用这些rvm,nvm和其他东西来正确设置它... –

回答

相关问题