HTTP 302 Response when trying to update

Korky Kathman's Avatar

Korky Kathman

24 Nov, 2010 02:20 PM

I have installed Instant Rails on a Windows XP system. Most everything works fine until I get to the point where I want to update ruby gems. When I issue

gem update --system

I get the following:

C:\InstantRails\rails_apps>gem update --system
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)

HTTP Response 302 fetching


I get this on two different XP machines, one at home and another at work.

Can someone please help me in resolving this issue?


  1. Support Staff 1 Posted by Nick Quaranto on 24 Nov, 2010 02:26 PM

    Nick Quaranto's Avatar

    Hi there,

    We usually recommend that Windows users use the RubyInstaller ( since InstantRails is usually very out of date.

    What version of RubyGems are you running? Can you paste the output of gem env ? Thanks.

  2. 2 Posted by Korky Kathman on 24 Nov, 2010 03:13 PM

    Korky Kathman's Avatar

    Thanks Nick. I have only just gotten into Ruby, though a web professional for about 15 years. I got the new Sitepoint "Simply Rails 2" book and the Instant Rails things was what they suggested.

    Here is the output you requested:

    C:\InstantRails\rails_apps>gem env
    RubyGems Environment:
    - RUBYGEMS VERSION: 1.0.1 (1.0.1) - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] - INSTALLATION DIRECTORY: C:/InstantRails/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE: C:/InstantRails/ruby/bin/ruby.exe - RUBYGEMS PLATFORMS:

    - ruby
    - x86-mswin32-60
    • GEM PATHS:
      • C:/InstantRails/ruby/lib/ruby/gems/1.8
      • :update_sources => true
      • :verbose => true
      • :benchmark => false
      • :backtrace => false
      • :bulk_threshold => 1000


  3. Support Staff 3 Posted by Nick Quaranto on 24 Nov, 2010 04:01 PM

    Nick Quaranto's Avatar

    Thanks, yeah, we have some cruft to clean up with the really old versions of RubyGems.

    I think the best thing you can do for now is to download the RubyGems zip and run ruby setup.rb.

    If that doesn't work, let us know.

  4. 4 Posted by Korky Kathman on 26 Nov, 2010 04:23 AM

    Korky Kathman's Avatar

    Hey Nick,

    Thanks, I'll try that on my windows box.

    Do you have a recommendation on the Mac? I have a MacBookPro that I'd like to install ruby/rails on also.


  5. 5 Posted by Alex J on 28 Nov, 2010 12:57 PM

    Alex J's Avatar

    Hi Nick,

    I'm having the exact same problem as described above but unlike Korky, I don't have 15 years of experience in web development, so here are some newbie contingencies:

    1. Would I do best in uninstalling InstantRails altogether and downloading Ruby 1.9.2-p0 and RubyGems-1.3.7 as suggested on and still be able to follow above mentioned tutorial without modification?

    2. When I extract rubygems-1.3.7, it seems to end up in a hidden folder wherever extracted. Should I move this folder elsewhere?

    3. What on earth does run setup.rb mean? Should I type a command in Ruby? Should I choose a program to open it with since it doesn't have an automatically assigned program? Should I drag and drop it into Google Chrome?

    I understand that the above sound very elementary but that's where I am at.

    Thanks a bunch!

  6. 6 Posted by Luis Lavena on 29 Nov, 2010 12:39 PM

    Luis Lavena's Avatar

    Hello Alex,

    1. RubyOnRails instructions do not mention, but Ruby 1.9.2 already includes RubyGems, so you don't need to install anything manually.

    2. I don't follow because I don't know where and how you extracted rubygems-1.3.7

    3. ruby setup.rb, RubyOnRails assumes you have certain knowledge of Ruby and the command line.

    I would recommend you read one of the Ruby and Rails installation tutorials from here:


    Hope that helps.

  7. 7 Posted by Alex J on 30 Nov, 2010 04:08 AM

    Alex J's Avatar


    Thanks very much for the reply.

    I think I've managed to get Ruby192 running with gems. I also think that I have been able to install Rails but the interface is still the same and I don't know if there is a way to check it - how can I do that? The reason why I am keen on using InstantRails (though, if Ruby192 with gems and Rails work just as fine, I would have nothing against using that) is to be able to redo the in the book Simply Rails 2, which uses InstantRails.

    The author expresses that "The Ruby console must be used" and ".. a regular DOS console" does not work for the purpose. But as far as I'm concerned, as long as I run Command Start Prompt with Ruby, it would be the sameas using the Ruby Console Window, right?


  8. 8 Posted by Alex J on 30 Nov, 2010 04:12 AM

    Alex J's Avatar

    I may have clicked the "Comment" button too soon. I seem to have Rails 3:

    C:\Users\BUNA>rails -v
    Rails 3.0.3


  9. 9 Posted by Luis Lavena on 30 Nov, 2010 12:15 PM

    Luis Lavena's Avatar


    If you're following a book for Rails 2, then having Rails 3 will not
    work for you.

    I think either you should get an updated copy of the book or downgrade rails

    gem uninstall rails --all

    gem install rails -v "~> 2.3.8"

    That will install version 2.3 which might be compatible with your book.

    As for "a normal DOS console/prompt", yes, Command Prompt with Ruby is
    a normal prompt with Ruby added to the PATH so "ruby" and the
    installed gems works.

    One thing to note is that there must be changes between Ruby 1.9.2 and
    Ruby 1.8.6 documented in the book and from your InstantRails

    I would recommend you get the PickAxe book for Ruby 1.9 instead:

    InstantRails is old, and new things will not work on it. People is
    working on update InstantRails to the new standard, but nothing yet
    has completed.

    On a personal note, your questions now are more related to Rails and
    your environment than Ruby, RubyGems and Windows.

    I would recommend you join rubyonrails-talk group and ask there:

  10. 10 Posted by Alex on 01 Dec, 2010 10:22 AM

    Alex's Avatar


    Thanks very much for the advice. It's all very helpful and very appreciated for someone completely starting from scratch as myself.

    I wanted to go through Simply Rails 2 since it's rebuilding a functioning application and I'm sure I'd easier learn by doing. I realize now that things are a bit more complex than I first thought.

    I will have a look at PickAxe and join the discussion group on Google. Thanks very much for the help!


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac