RVM allows installing and managing multiple Ruby environments and gemsets. The author had a mismatch between their Ruby and Rails versions that caused issues. They installed RVM and used it to install Ruby 1.8.6 and keep gems separate for different projects. Bundler works with RVM to specify gems in a Gemfile and ensure consistent dependencies. Creating an .rvmrc file sets the Ruby version and gemset for a project directory.