Ruby-on-rails – How to force gem to upgrade to gem 1.3.1

rubyruby-on-railsrubygems

I am trying to install a gem like this:

C:\InstantRails\rails_apps\foodmarksthespot>ruby script/plugin install git://github.com/lazyatom/engines.git

Which returns this message:

Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again.

But when I try to update using:

gem update --system

it says:

Updating RubyGems
Nothing to update

This is on windows. How can I force it to upgrade the system to a specific version?

Best Solution

http://rubyforge.org/forum/forum.php?forum_id=28071

From there:

NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
rubygems-update installed. You will need to follow the second set of update
instructions if you see "Nothing to update".

If you have an older version of RubyGems installed, then you can still
do it in two steps:

$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems (... here too)