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 Installation Error

So I've been working on setting up Ruby for my Windows computer, more particularly Windows 8.1. I've made it through every step, except when I type in localhost:3000 into my internet browser, Firefox says:

Unable to connect

Firefox can't establish a connection to the server at localhost:3000.

Does anyone know what could be my problem? Everything I installed in CMD seemed to work properly, although at times it would say "DL is deprecated, please use Fiddle", then pause for a second. After this, it just finishes the operation.

1 Answer

You have to start the rails server before you can connect to it via the browser. First you need to create a new rails application.

rails new testapp

Then you need to enter the testapp folder and start the rails server from the bin directory.

cd testapp

bin/rails server

Then you should be able to access the the server at localhost:3000

Binary Soul
Binary Soul
4,592 Points

and in fact, he has to install rails first ;D

use gem install rails to do so.