?
Solved

Installing Ruby on Rails  WEBrick  help

Posted on 2011-09-21
3
Medium Priority
?
549 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 2000 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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

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 video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

719 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