tokyoprince — 2011-09-02T07:40:18-04:00 — #1
I am trying to learn Ruby on Rails from the Sitepoint book Simply Rails 2. I have downloaded the InstantRails installation file and followed the instructions in the book. however when I try to run the update command:
gem update --system
I get the error HTTP Response 302 fetching http//gems.rubyforge.org/yaml
I cannot see what I have done wrong, please can anybody help and explain what I need to do? I am a newbie to Ruby and using the command line interface. Many thanks
dnuttle — 2011-12-03T10:16:51-05:00 — #2
I have the exact same problem. I'm on windows 7. Google search indicates that many, many people have the same problem. The responses are generally along the lines of upgrading to a higher version of Ruby, which means that the code in the book might not work.
imaginekitty — 2011-12-04T08:31:38-05:00 — #3
Apparently a lot changed from rails 2 to rails 3. The latest version of rails is 3.1
scannon — 2011-12-08T06:51:25-05:00 — #4
A lot has changed since the book was written. However, you can still use it to learn Rails. Here's what you need to do:
First, Instant Rails is and has been dead. Get rid of it. The preferred way to use Ruby and Rails on a Windows box is to use Rails Installer. (http://www.railsinstaller.org)
This should solve most of your problems with using Ruby on Windows.
If you want you can always add a version of Rails 2.x to your system after the fact if you want to work through the book. Otherwise if you find something that breaks just check the Rails docs to see what has changed from 2.0 to 3.0.