Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAndrew Stelmach
12,583 PointsCan I use different version of Rails with different apps?
So I've got a couple of apps running locally and on Heroku which I made using Rails 4.1.8 and Ruby 2.1.5p273.
In my Gemfile of one app it says
gem 'rails', '4.1.8'
I'm about to start working through Michael Hartl's Rails tutorial and he recommends installing the same version of Rails that he uses in the tutorial: 4.2.0.rc3
Can I run gem install rails -v 4.2.0.rc3 in my console and not cause any problems with my existing applications that I'm working on?
1 Answer
Laura Cressman
12,548 PointsYes-if you specify in your Gemfile which version you are using it should be fine! You can also install rvm to manage different versions of Ruby and Rails from the command line:
Happy holidays :)