Solved

Installing Ruby on Rails  WEBrick  help

Posted on 2011-09-21
3
481 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:jonathan1978
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
JESii earned 500 total points
Comment Utility
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:jonathan1978
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now