Your first set of errors will go away if your remove the hidden .rvmrc
file in your project directory:
$ rm .rvmrc
The file only exists to set a Ruby version and gemset when you cd
into the directory. You can either set the Ruby version and gemset manually, or create new .ruby-version
and .ruby-gemset
files which are compatible with RVM and other version managers. For details, see my answer Use rvmrc or ruby-version file to set a project gemset with RVM?.
You may need to remove and reinstall the Ruby version you are using. Here's how:
$ rvm remove ree-1.8.7-2012.02
Here's the documentation.
You probably don't need to uninstall RVM. But if you do, you can use
$ rvm implode
to remove all traces of RVM before re-installing (documented here). For more details on installing Ruby and multiple versions of Rails using RVM, see the article I wrote:
Lastly, since you mention that you are reading a tutorial that requires an old version of Rails, may I politely suggest you have a look at a book I've written for beginners that is up to date with the newest version of Rails (currently Rails 4.1 but I revise the book with every new release). I hope it is helpful:
I mention my article and my book because they provide additional information about setting your development environment for Rails using RVM and may answer further questions for you.