Changing bundle_path (Gem Bundler)
I was about to run Bundler, and I wanted to test if the command would accept the name of a gem to install as an argument, like this:
bundle install capybara-envjs
This ran the whole bundle, and didn’t install only capybara-envjs, but not a big deal — I just ignored that fact and kept working. Eventually, I noticed the capybara-envjs misteriously sitting at the root of the Rails application. What was that? Happens it contained all the gems from my Gemfile!
Happens that the argument you pass after install tells bundler where you want to install the gems to. Not so obvious.
Anyway, if you happen to fall in the same “trap”, just edit .bundle/config in the root of you Rails app and set the value of BUNDLE_PATH to the correct path (usually ~/.bundle).
