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

appbites
appbites
2,949 Points

One project - 2 different versions of Ruby on 2 different computers.

I am building Ruby on Rails application, using tutorials on Treehouse.

On my iMac I have got installed ruby 2.0.0p195. On my laptop with Ubuntu 13.04 I run ruby 1.9.3p394 version.

Sometimes I go out and work from my laptop.

The question is: Can I work on one, same project using different versions of Ruby?

2 Answers

James Barnett
James Barnett
39,199 Points

The easiest way would probably be to use rvm on your mac and install the 1.9.3 onto your iMac and then use github to sync the changes between the 2 computers.

appbites
appbites
2,949 Points

James Barnett , to be honest with you I would prefer to use newest version of Ruby (it way faster). Now my question is can I still keep 1.9.3 for a week or so on my laptop with Ubuntu 13.04 and do some changes and when I switch to iMac can I continue on 2.0.0. Eeventually I want to update my Ruby to 2.0.0 on my laptop as well, but just not now.