I'm careful to create separate gemsets for each project, so when I run
bundle install, it only installs gems for that gemset. This way gems
dont creep into the wrong projects. Now I just pulled a project from
github. I made sure I was in the correct gemset, and then I run bundle
install and it works fine. but then when I use rake to create the
database "rake db:create". I get this error:
You have already activated rake 10.0.4, but your Gemfile requires rake
10.0.3.
What does it mean "you already activated rake 10.0.4"? All that should
be installed for this gemset is whatever is in Gemfile.
I guess you have installed rake in your global gemset for the ruby version you are using.
Go outside the project and run rvm use <ruby version>@global and then gem list. If you see rake in the list, that means you have it in the global gemset. No matter which gemset you use with the ruby version, the gems in the global gemset will be available.