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

Doubling up?

Hi,

Ive been having some issues with Ruby/Rails on my Mac (osX 10.8.5). In the intro tutorial treehouse gets us to install a ruby environment with a successful test app etc... then in a following video "instailling rails (mac)" you download rails/ruby again....

Question is - Is this doubling up on what you have already downloaded using the command line? or are you gaining something different/extra with this download?

Any info would be greatly appreciated.

Cheers!

James Barnett
James Barnett
39,199 Points

Can you link which videos you are referring to?

Thanks for your response... I took a gamble and continued with the ruby tutorials ignoring the second video am i am yet to come across as issue that isn't bootstrap version related...

http://teamtreehouse.com/library/installing-a-ruby-development-environment/installing-a-ruby-development-environment/installing-ruby-on-mac

and

http://teamtreehouse.com/library/build-a-simple-ruby-on-rails-application/getting-started-with-rails/installing-rails-mac

what do you think?

1 Answer

Stone Preston
Stone Preston
42,016 Points

Installing A Ruby Development Environment is a separate (and newer) project. It uses rbenv to set up the environment (assuming you dont use the VM).

Build a Simple Ruby on Rails application is older and uses Rails Installer (which doesnt work on Mavericks currently) and RVM (I think? its been a while).

You could "double up" depending on when you last ran gem install rails. If you ran it in the past and installed an older version of rails on your system, running it again will get the newest version so then you would have 2 different versions on your machine (not a bad thing). You could specify which version of rails you actually wanted to use in your gem file, but it will use the newest by default

tldr; They both accomplish the same thing, one uses one method to install, the other uses a different method. However they do the same thing essentially

Great explanation! Thanks Stone!