small medium large xlarge

20 Jun 2010, 17:23
Jim Robertson (1 post)

I have exactly the same problem as Travis. I have it installed on Windows 7. In addition to this problem, when I start the server (rails server) and attempt to view the page in a browser (http://localhost:3000/products) after a few seconds I get an error message saying that the Ruby Interpreter has stopped.

Any help!!

26 Jun 2010, 14:09
Malcolm Arnold (21 posts)

Hello Sam,

I have the same problem developed on Ruby 1.9.1. p378 after using it successfully on through page 41. Please could you let us know what would be the correct procedure for a windows 7 machine to uninstall/re-install 1.87. (With OS X, I could install RVM and switch between Ruby versions).

What I did which is NOT working is: Uninstalled Ruby 1.9.1 p378 Installed 1.8.7 as indicated in your post above.

Then I had to rerun the commands on page 25(to associate the data base and rails to Ruby 1.87)

Now install the ruby bindings to SQLite3, and the Rails beta itself: gem install sqlite3-ruby gem install rails –pre

My hope is that is just overwrote what was there before and didn’t leave any clutter. Is this correct?

AFTER doing the above, I am able to run rails server normally and it shows that I am connecting to Ruby 1.87 but the URL or goodbye just times out.

OK..this is an edit. It is now sometimes working and sometimes not. In the cmd window running Webbrick, I get a message saying “Started Get..etc.” and then the number of milliseconds. I don’t remember this window displaying this information. I remember cmd window running the server staying static with the last line saying(as on page 35):

[2009-09-29 10:53:40] INFO WEBrick::HTTPServer#start: pid=6044 port=3000

This another edit. My problem above(I believe) was being cause by running the same iteration of web server. As Sam explains later in the book on page 80:

(If you get an error saying Address already in use when you try to run the server, that simply means that you already have a Rails server running on your machine. If you’ve been following along with the examples in the book, that might well be the “Hello, World!” application from Chapter 4. Find its console, and kill the server using Ctrl-C.

23 Jun 2010, 03:08
John H Simmonds (13 posts)

The terminal where you run “rails server” should display the results of HTTP activity.

Your URL should be : http://localhost:3000/say/hello

Glad you’re getting better results with Ruby 1.8.7.

You must be logged in to comment