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

Ruby Uber Beginner..

hey guys...

i'm on this video: http://teamtreehouse.com/library/programaming-2/build-a-simple-version-of-facebook/getting-started-with-rails/generate-a-rails-application

I load up the RoR command prompt and it takes me to >Sites but in the video the instructor starts by saying "i've already created a directory called Projects and then types a code to tell RVM to use the version of RoR that came with rails installer... I cannot get to that point.

How can I create this directory and keep moving?

thanks guys.

love Super Newbie.

10 Answers

Depends on the OS you are using.

In any case folders and directories are the same thing. Create a folder named Project inside of the Sites folder.

I am using Windows 7 and its still not working. I've created Projects folder with >mk dir Projects and then cd Projects...

but when I type the command rvm use 1.9.3 I get "rvm is not a recognized as an internal or external command, operable program or batch file.

I've tried various permutations of this and nothing seems to arrive at anything other than an error message. Can't move on from here.

You can check out these pages for instructions on how to correctly install & generate your first rails app on Windows.

http://railsinstaller.org/windows


On Windows the way to start Rails is to type rails s webbrick will then tell you the address it's starting on. By default you can access the Rails web server Webbrick on 127.0.0.1:3000.

Both the rvm and 0.0.0.0 only apply if you are working on a OS X.

To stop the Webbrick server, either kill the process or use CTRL-Break.

hey james

that link you sent me is about 2 years old, and therefore different than the rails installer site that treehouse recommends in its course.

I've been banging my head against the wall with and still getting no where.

no matter what I try... using the command rvm use 1.9.3 does not work.

"rails new treebook" gets some action, but its the wrong action and then the command prompt no longer function.

Any assistance here would be great... Its frustrating to get stuck this soon into the course.

I am going to keep fiddling with this and hopefully find the solution. thanks james

3 steps closer, 2 steps back...

ran the server, and then once again command prompt froze and the rails app location url does not work. Is anyone else finding this problem with the RoR windows version?

When you type rails s on the command prompt what happens?

If the server is successfully running you can view the webpage in your browser at localhost:3000

If you want to stop the server, click into the command prompt window you typed rails s and press the CTRL+Break keys at the same time.

I'm stuck on the same video. They need a windows version that is separate from mac os. I got a little further than you but there are more things windows users have to figure out.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Michael and Darren, can you email a screenshot of your errors to help@teamtreehouse.com and we'll help you out? Thanks!

Yeah, apparently "rvm" doesn't work for Windows users (there are alternatives) which is confusing especially for beginners. However, you can skip that step and the rest of the steps in the video should work out for you. I'm on Win7 and was able to complete the video. Like James said, be sure to use "http://127.0.0.1:3000/" in your browser address bar, and CTRL+Pause/Break to terminate the server on your system.

Liking the series so far, but using the command prompt can be confusing for newbies, so perhaps a bit more direction for that in the future would be nice. Hopefully you guys aren't stuck anymore, but I'll be happy to try and help if you are.