uninitialized constant Bundler (NameError) with rails 3

╄→гoц情女王★ 提交于 2019-12-06 09:35:54

问题


When I try to run some rspec test cases I'm getting this error

I'm using linux rails 3.0.0, ruby 1.9.2 (with RVM)

config/boot.rb:8: uninitialized constant Bundler (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' ..

But when do a gem list , it shows both builder (2.1.2) bundler (1.0.10)

so what can be the problem?


回答1:


Just update your bundler, in latest version such issue is resolved.

'gem install bundler'

and then 'bundler install'

If you find again error, then delete GEM.lock file, then run bundler install. It may resolve the issue.



来源:https://stackoverflow.com/questions/5121962/uninitialized-constant-bundler-nameerror-with-rails-3

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