Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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