ruby on rails – bundle reinstall

2012.10.18 | Rails, Ruby | , ,

RailsConf Europe keynoteAfter an OS upgrade I needed to reinstall all the gems for my Rails project (well, I probably didn’t need to do it, but it seemed the quickest way).

Since I used RVM and only had one Ruby on Rails project I was working on, doing so is easy, though not intuitive.

To uninstall all the gems:

$ rvm gemset empty

Then install them the regular way:

$ bundle install 

You might get an error that looks like this: “There was an error in your Gemfile, and Bundler cannot continue.”. ┬áIf that’s the case, run:

$ gem install bundler