Uninitialized Permanent Bundler (NameError) with Rails 3

When I try to run some rspec test cases, I get this error

I am 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 the gems list, it shows both the builder (2.1.2) bundler (1.0.10)

what could be the problem?

+3
source share
1 answer

Just update your package, in the latest version the problem will be solved.

'gem install bundler'

and then 'bundler install'

If you find the error again, then delete the GEM.lock file, then run bundler install. This may solve the problem.

+3
source

Source: https://habr.com/ru/post/1794802/


All Articles