Reputation: 6236
I am getting started with ruby on rails, but facing a lot of issues setting up a new blog from ruby tutorials.
I had installed ruby 2.3.0 using rubyenv
on my Mac El Capitan. But soon after I ran into namespace conflicts and errors. I solved them one by one but now when I run
bin/rails generate controller welcome index
on the new blog, I get -
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)
Why does it show 2.0.0 when I've installed 2.3.0?
Stuff I've tried:
$ sudo gem update --system
$ export PATH="$HOME/.rbenv/shims:$PATH"
$ echo $GEM_HOME
<returns blank>
$which -a ruby
/Users/shubhamkanodia/.rbenv/shims/ruby
/usr/bin/ruby
rbenv versions
system
* 2.3.0 (set by /Users/shubhamkanodia/.rbenv/version)
Upvotes: 2
Views: 3358