Solved

Installing Ruby on Rails  WEBrick  help

Posted on 2011-09-21
3
502 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
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:jonathan1978
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
push Book Today button to right 10 39
Downside of adding characters set in ASP pages 6 30
Returning a value from a class function to a partial view in MVC5 7 30
Link failure 16 35
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to dynamically set the form action using jQuery.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

820 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