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

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!