I\'m new to rails and working through Hartl\'s tutorial. Everything was fine until I tried to do the tutorial a second time and created another project trying to use the lat
First set Ruby version before Rails new
I had the same problem and I tried the answer given and it had no impact. I even tried changing the name to get rid of the underscore, and it had no impact.
The problem is that you did this:
$ rails new app_name
But your ruby version was probably 2.1.1 or something else. You want to do:
$ rvm 2.0.0
BEFORE you run the new app, and then when you set 2.0.0 in your Gemfile (as Hartl recommends) it falls into place.
I don't know WHY this works, and I hope someone will shed light on it, but I can tell you that this worked better than the answer that is currently in the lead.