Solved

Installing Ruby on Rails  WEBrick  help

Posted on 2011-09-21
3
513 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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…

734 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