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 Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

To anybody struggling with installing a Ruby environment on Windows...

...don't bother! Skip to the "Installing the Treehouse VM on Windows" video instead. So much quicker and easier and I had no problems doing this.

5 Answers

Rails Installer will facilitate the installation: http://railsinstaller.org/en

good luck

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

It uses old versions of Ruby and Rails and does not change the fact that developing Rails under Windows will always be painful :)

As Maciej says, I still struggled even using the installer! The VM is a dream in comparison and so much easier for beginners and people who aren't overly technical. It can be quite frustrating and disheartening when sat on your own facing a barrage of errors and the VM keeps everything nice and clean too.

Download Rails installer version 3.0.0 open command prompt with rails and run rails -v ,if the version lesser than 4.0.0 run the following command

gem update rails --no-ri --no-rdoc

test your rails by making a new project rails new wedidit cd wedidit rails server

James demby
James demby
10,296 Points

When you say skip ahead do you literately mean do not do anything in this video and skip to the VM video? This one ? http://teamtreehouse.com/library/installing-a-ruby-development-environment/installing-a-ruby-development-environment/installing-the-treehouse-vm-on-windows

I am trying to go back and erase everything and start over, but nothing in the other video has a download ruby part which seems strange

It is not 100 clear to me how to delete everything I downloaded, but I think this is the right approach?

Cheers

Hi James

Yes, that's what I did. I uninstalled everything and just followed the VM video. I've since moved on to the "Build a Todo List Application with Rails 4" course (https://teamtreehouse.com/library/build-a-todo-list-application-with-rails-4), which is on the Ruby track, and Jason actually uses the VM throughout the course so it's made it all so easy and seamless to follow.

The VM contains everything you need to run Ruby/Rails so it's a one stop shop.

Just try and follow the steps backwards that you followed on the Windows video...from what I remember I uninstalled Ruby through Programs and Features in Control Panel and Git and any other application that had been installed. I then deleted the folder(s) on the C drive that had been created.

James demby
James demby
10,296 Points

Hi Carrie,

In the Todo list did you happen to run into this on the "Set up Git and Gems" video?

When I run "bundle" I get

Could not fetch specs from https://rubygems.org"

I am on the VM using Vagrant to bring it up etc. But, I got stuck kind of quickly

Hi James

I don't recall receiving any error, sorry!

I would ask a new question in the forum and copy the whole of your screen so people can see exactly what's happened before you receive this error.

There are a number of questions already posed against that video too, not sure if any of those can help you?

James demby
James demby
10,296 Points

Thanks Carrie,

I saw a comment about using a service that let's you do it all on a Linux box, and now everything is working great.

Good luck on your new Track!

Thank you, glad you got sorted in the end :)