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

Generate a Rails Application Problem

I am working on the section entitled "Generate a Rails Applicaton".

The instructor says that they have already created a directory called projects and their command prompt already starts with this.

1.9.3[~/Projects]$

and it says that you need to type

rvm use 1.9.3

My command prompt starts with C:\Windows\system32> and it tells me that rvm is not recognized as a command.

Can anyone explain what I need to do in order to create a project?

4 Answers

Attention Windows Users

You should access port 3000 with the following address 127.0.0.1:3000 rather than 0.0.0.0:3000.

It is also not necessary to type the "rvm use" command on Windows.

Underneath the video there is usually some side notes & commands that were used in the video, they have helped me out a few times :D

it say for windows users not to use "rvm use" but it doesnt give an alternative to use in place of that.

Hello, Ashley.

rvm is 'Ruby Version Manager' (https://rvm.io/?)

You don't have to type 'rvm use [ruby installed version]'

In the video, the instructor seemed already set up their project folder. You also need to create a 'Projects' folder beneath C: drive.

Hi Ashley,

I came up with the same problem and still trying to figure it out with the above reply backs.To keep it simple, using Windows, what should we type after C:\Sites>

What do you mean we should "You should access port 3000 with the following address 127.0.0.1:3000 rather than 0.0.0.0:3000"?

How should we "You also need to create a 'Projects' folder beneath C: drive"?

Sorry, my first day. Was on a roll, feeling great until this happen! Been trying to figure this out now for over an hours. Feeling bummed out now.

Thanks!

You have to read the notes underneath the video.

Here are the instructions for Windows Users

Terminal Commands

Create a directory:

mkdir [directory_name]

Create a new rails application:

rails new treebook

Start the rails server:

rails server

Follow the video slowly again and and you have to access via 127.0.0.1:3000 on a browser. The directory is up to you. You don't have to create 'Projects' like the instructor on a video.

can somebody explain what all that jibber jabber under the video means !

If you want to see the web page(application), you have to run your rails server. But you can't just run it everywhere. You MUST be inside of the app. If your app's name is 'treebook', then go to inside of this on Terminal command line.

cd path rails server

and then go to 127.0.0.1:3000

Hi Dongju,

I opened up a new windows browser and copy pasted 127.0.0.1:3000 and did same thing inside the rails server. Nothing!

Sorry, new to this.

Thanks,

you have to run rails server first before going to the address. and please show me some images of your error or situation.