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

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.