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

Where can I download Ruby, and Rails having it actually work?

I've always encountered problems when following the Rails installation videos from Treehouse. I either get errors towards the end of installation, or my Ruby version won't update.

I just need a method that someone has used and, it undoubtedly worked. Preferably for the most recent versions, Ruby 2.1.2 and Rails 4.1.5; but I'll take anything at this point.

2 Answers

If you are on OS X, I suggest following along with this course.

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

Note that you should also look into the projects that follow the ODOT project and NOT the Treebook project (which uses rails 3). While the Treebook project is nice (it's what I first learned), it's outdated and you will spend more time trying to change the code you see in the videos to fit rails 4 than actually learning how to use rails.

I highly recommend doing the entire ODOT project first (Jason recently added a bunch of videos that show various functionality of rails), then you can dive into the Treebook project and even add the functionality you see there into your ODOT project.

Hope this helps, if not, don't hesitate to ask more! (it's helpful if you tell us what you've tried and what errors you are getting too =] )

Hey, thanks for the advise.

Did you use Ruby Build to install Ruby 2.1.2? Last time I tried this my Ruby versions was 2.00p451 even after changing the global to 2.1.2

Well, remember that OS X comes installed with 2.0, so I suspect that is the version you are seeing. I used rbenv to set the ruby version for my project (the idea being you can have different versions installed for different projects). Some people use rbenv, some use rvm. I used rbenv cause that's what Jason used.

Here's some reading:

http://stackoverflow.com/questions/8877772/how-do-you-use-multiple-rails-versions-with-rbenv

http://blog.55minutes.com/2013/09/rails-os-x-install-guide/

I did the windows installer from http://rubyinstaller.org/ Then for rails I installed the gem on the terminal . "gem install rails" This site helped me. I haven't worked with the server yet. let me know if this helps.