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 trial

Ruby Installing Rails on Mac

Nelly Nelly
Nelly Nelly
7,134 Points

What if I want to use rails 4 in another project?

Hi there,

I am about to install rails 5, I have rails 4 installed with a couple of project working under rails 4... If for some reasons I wanna create a new project with rails 4, would it be easy to go back to rails 4 instead of rails 5?

Is :

rvm use  rails 4.2.6

would do the job, for sure?

Ethan Rivas
Ethan Rivas
9,979 Points

Not at all, do you already have a rails 4.2.6 gemset created?

Nelly Nelly
Nelly Nelly
7,134 Points

I ran this

$ rvm gemset list

gemsets for ruby-2.3.1 (found in /Users/nelly/.rvm/gems/ruby-2.3.1)
=> (default)
   global

How can I keep an older version of rails? Like the 4.2.6 I used to have

2 Answers

Ethan Rivas
Ethan Rivas
9,979 Points

I have just found this from another TreeHouse Student about the Rails versions:

https://teamtreehouse.com/community/different-rails-versions

And the best answer from this shows you how use the gems and install the rails version that you want to use:

http://stackoverflow.com/questions/18348373/how-to-use-rvm-and-different-versions-of-rails