Ruby 2.2.2 and Rails 4.2.1 railties or spring dependency issues

Ok, here’s the story so far. Last night I passed rails new and it worked but I got a message at the end that i should be using Ruby 2.2.2 to ensure the best performance, I think because of spring. I switched to Ruby 2.2.2 so this isn’t as much of a question about spring but I figured I should mention it as part of the process of how I got to being on Ruby 2.2.2

Now that I am, when I do rails new the only thing that happens is I get this feedback

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'railties' (>= 0) among 11 total gem(s) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in to_spec’
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/bin/rails:22:in
Baileys-MacBook-Pro:mod dev$ rails new trips.app
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'railties' (>= 0) among 11 total gem(s) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in to_spec’
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/bin/rails:22:in

Any insight into this?

By the way, I am using chruby if that helps anyone to understand the issues

Sounds like you need to run 'gem install rails' again. It will find the
missing dependencies, including railties, and reinstall them.

Great answer, that sounds like the problem… and now it works!

Thank you Ruby-Forum.com User