Solved

Installing Ruby on Rails  WEBrick  help

Posted on 2011-09-21
3
527 Views
Last Modified: 2012-05-12
Hi,

I am following the Lynda.com Ruby on Rails Essential Training video, but i am having trouble setting everything up.   I have installed ruby/rails, mysql. Next they say too install the webserver,  I have followed everything they said (Use WEBRick which is already installed). When i type  rails server  i get the following in the screenshot, and i am not sure what to do now. I should be seeing the ruby page at localhost:3000  but i get Oops! Google Chrome could not connect to localhost:3000.

Can somebody get me in the right direction please.
command-prompt.jpg
0
Comment
Question by:Jon Imms
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
JESii earned 500 total points
ID: 36578318
Looks as if you have yet to create your Rails application...

Try typing:
   rails new <name-of-your-app>
then do a:
   cd <name-of-your-app>
which should take you into your application (<name-of-your-app> becomes the directory in which your rails app is created).
Then try your
   rails server
from there.
0
 

Author Closing Comment

by:Jon Imms
ID: 36578328
I had already tried what you said, which is exactly what they said on the tutorial, but it did not work.    I decided to start again,  created a new project, moved to that directory, and now it works :)
0
 
LVL 12

Expert Comment

by:JESii
ID: 36579628
The "rails server' didn't work previously because you were in c:\Users\Jon, not in the rails directory itself; You may have accidentally cd'd out of the directory before you tried the 'rails server' command.

Anyway, glad that helped... and thanks for the points.
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question