Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specifying Rails Version

I decided to upgrade to Ruby 2.0.0 and Rails 4.0.0. I'm trying to set these as my default programs, by using this line:

rvm use [email protected] --default

I get the error

Failed to load /Users/michaeldunnegan/.gemrc because it doesn't contain valid YAML hash

My .gemrc file is blank. I don't know what to do. I can't find any references at all.

like image 486
Mike Avatar asked Aug 14 '26 16:08

Mike


2 Answers

most likely it is not empty, there is a lot of UTF-8 characters that editor will not show you, just remove the file before continuing:

rm -f /Users/michaeldunnegan/.gemrc
like image 194
mpapis Avatar answered Aug 16 '26 20:08

mpapis


You need to make a gemset first:

rvm --default use 2.0.0
rvm gemset create rails-4.0.0
rvm use [email protected] --default
gem install rails

I think that is right.

like image 41
Evan Richards Avatar answered Aug 16 '26 20:08

Evan Richards



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!