tag:help.rubygems.org,2010-01-19:/discussions/problems/416-http-302-response-when-trying-to-updateRubyGems.org: Discussion 2015-08-17T20:10:58Ztag:help.rubygems.org,2010-01-19:Comment/39635792010-11-24T14:26:14Z2010-11-24T14:26:14ZHTTP 302 Response when trying to update <div><p>Hi there,</p>
<p>We usually recommend that Windows users use the RubyInstaller
(<a href="http://rubyinstaller.org">http://rubyinstaller.org</a>)
since InstantRails is usually <em>very</em> out of date.</p>
<p>What version of RubyGems are you running? Can you paste the
output of <code>gem env</code> ? Thanks.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/39635792010-11-24T15:13:42Z2010-11-24T15:13:43ZHTTP 302 Response when trying to update <div><p>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.</p>
<p>Here is the output you requested:</p>
<p>C:\InstantRails\rails_apps>gem env<br>
RubyGems Environment:<br>
- 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:</p>
<pre>
<code>- ruby
- x86-mswin32-60</code>
</pre>
<ul>
<li>GEM PATHS:
<ul>
<li>C:/InstantRails/ruby/lib/ruby/gems/1.8</li>
</ul>
</li>
<li>GEM CONFIGURATION:
<ul>
<li>:update_sources => true</li>
<li>:verbose => true</li>
<li>:benchmark => false</li>
<li>:backtrace => false</li>
<li>:bulk_threshold => 1000</li>
</ul>
</li>
<li>REMOTE SOURCES:
<ul>
<li><a href=
"http://gems.rubyforge.org">http://gems.rubyforge.org</a></li>
</ul>
</li>
</ul>
<p>C:\InstantRails\rails_apps></p></div>Korky Kathmantag:help.rubygems.org,2010-01-19:Comment/39635792010-11-24T16:01:45Z2010-11-24T16:01:45ZHTTP 302 Response when trying to update <div><p>Thanks, yeah, we have some cruft to clean up with the really old
versions of RubyGems.</p>
<p>I think the best thing you can do for now is to download the
RubyGems zip and run <code>ruby setup.rb</code>.</p>
<p><a href=
"http://rubygems.org/pages/download">http://rubygems.org/pages/download</a></p>
<p>If that doesn't work, let us know.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/39635792010-11-26T04:23:41Z2010-11-26T04:23:42ZHTTP 302 Response when trying to update <div><p>Hey Nick,</p>
<p>Thanks, I'll try that on my windows box.</p>
<p>Do you have a recommendation on the Mac? I have a MacBookPro
that I'd like to install ruby/rails on also.</p>
<p>Korky</p></div>Korky Kathmantag:help.rubygems.org,2010-01-19:Comment/39635792010-11-28T12:57:26Z2010-11-28T12:57:27ZHTTP 302 Response when trying to update <div><p>Hi Nick,</p>
<p>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:</p>
<ol>
<li>
<p>Would I do best in uninstalling InstantRails altogether and
downloading Ruby 1.9.2-p0 and RubyGems-1.3.7 as suggested on
<a href=
"http://rubyonrails.org/download">http://rubyonrails.org/download</a>
and still be able to follow above mentioned tutorial without
modification?</p>
</li>
<li>
<p>When I extract rubygems-1.3.7, it seems to end up in a hidden
folder wherever extracted. Should I move this folder elsewhere?</p>
</li>
<li>
<p>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?</p>
</li>
</ol>
<p>I understand that the above sound very elementary but that's
where I am at.</p>
<p>Thanks a bunch!<br>
Alex</p></div>Alex Jtag:help.rubygems.org,2010-01-19:Comment/39635792010-11-29T12:39:51Z2010-11-29T12:39:51ZHTTP 302 Response when trying to update <div><p>Hello Alex,</p>
<ol>
<li>
<p>RubyOnRails instructions do not mention, but Ruby 1.9.2
<em>already</em> includes RubyGems, so you don't need to install
anything manually.</p>
</li>
<li>
<p>I don't follow because I don't know where and how you extracted
rubygems-1.3.7</p>
</li>
<li>
<p><code>ruby setup.rb</code>, RubyOnRails assumes you have certain
knowledge of Ruby and the command line.</p>
</li>
</ol>
<p>I would recommend you read one of the Ruby and Rails
installation tutorials from here:</p>
<p><a href=
"http://github.com/oneclick/rubyinstaller/wiki/Tutorials">http://github.com/oneclick/rubyinstaller/wiki/Tutorials</a></p>
<p>Specially:</p>
<p><a href=
"http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-windows">
http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-windows</a></p>
<p>Hope that helps.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/39635792010-11-30T04:08:46Z2010-11-30T04:08:48ZHTTP 302 Response when trying to update <div><p>Luis,</p>
<p>Thanks very much for the reply.</p>
<p>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
digg.com-project in the book Simply Rails 2, which uses
InstantRails.</p>
<p>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?</p>
<p>Cheers,<br>
Alex<br>
<a href=
"http://wthisruby.wordpress.com">http://wthisruby.wordpress.com</a></p></div>Alex Jtag:help.rubygems.org,2010-01-19:Comment/39635792010-11-30T04:12:15Z2010-11-30T04:12:17ZHTTP 302 Response when trying to update <div><p>I may have clicked the "Comment" button too soon. I seem to have
Rails 3:</p>
<p>C:\Users\BUNA>rails -v<br>
Rails 3.0.3</p>
<p>Cheers,<br>
Alex<br>
<a href=
"http://wthisruby.wordpress.com">http://wthisruby.wordpress.com</a></p></div>Alex Jtag:help.rubygems.org,2010-01-19:Comment/39635792010-11-30T12:15:49Z2010-11-30T12:15:49ZHTTP 302 Response when trying to update <div><p>Alex,</p>
<p>If you're following a book for Rails 2, then having Rails 3 will
not<br>
work for you.</p>
<p>I think either you should get an updated copy of the book or
downgrade rails</p>
<p>gem uninstall rails --all</p>
<p>gem install rails -v "~> 2.3.8"</p>
<p>That will install version 2.3 which might be compatible with
your book.</p>
<p>As for "a normal DOS console/prompt", yes, Command Prompt with
Ruby is<br>
a normal prompt with Ruby added to the PATH so "ruby" and the<br>
installed gems works.</p>
<p>One thing to note is that there must be changes between Ruby
1.9.2 and<br>
Ruby 1.8.6 documented in the book and from your InstantRails<br>
installation.</p>
<p>I would recommend you get the PickAxe book for Ruby 1.9
instead:</p>
<p><a href=
"http://pragprog.com/titles/ruby3/programming-ruby-1-9">http://pragprog.com/titles/ruby3/programming-ruby-1-9</a></p>
<p>InstantRails is old, and new things will not work on it. People
is<br>
working on update InstantRails to the new standard, but nothing
yet<br>
has completed.</p>
<p>On a personal note, your questions now are more related to Rails
and<br>
your environment than Ruby, RubyGems and Windows.</p>
<p>I would recommend you join rubyonrails-talk group and ask
there:</p>
<p><a href=
"http://groups.google.com/group/rubyonrails-talk">http://groups.google.com/group/rubyonrails-talk</a></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/39635792010-12-01T10:22:57Z2010-12-01T10:22:57ZHTTP 302 Response when trying to update <div><p>Luis,</p>
<p>Thanks very much for the advice. It's all very helpful and very
appreciated for someone completely starting from scratch as
myself.</p>
<p>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.</p>
<p>I will have a look at PickAxe and join the discussion group on
Google. Thanks very much for the help!</p>
<p>Cheers,<br>
Alex<br>
<a href=
"http://wthisruby.wordpress.com">http://wthisruby.wordpress.com</a></p></div>Alex