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 http://www.localhost.com:3000/say/hello 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