6,830 Experience
65 Lessons Completed
0 Questions Solved


Hi all,

I'd like some clarification from someone who's more expert than me, if possible.

I'm currently having RVM and Rails 4.2.6 installed on my development environment in which I have built a few projects. Now, for my new projects I'd like to use the latest rails version (currently v5). So I assume that if I type the gem install rails command will get me the latest rails verion and probably set it as default, so every time I want to create a new project with rails new mynewprojectname this project will have the latest version, right?

My question is will my gem list contain both rails versions then, or is it going to cause any conflicts or issues to my old porjects, maybe by overwriting the rails gem? So if I want to work back on any of my "old" projects which has the "old" version, won't affect of any changes, right?

As far as I understand its the bundler who picks the version of each gem through the gemfile (unless you don't specify the version number, which in this case picks the latest version), right? If thats the case, I assume same thing applies and for every other gem that I've installed and use for each project, right?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.