undefined method `refresh' for #| April 13, 2007-->
April 13, 2007
Are you getting the following error while trying to use the "gem" command?
undefined method `refresh' for #<Hash...Solution: Delete your source_cache files!
These files are located in your local ~/.gem and in your system gem directory.
You can print your system gem directory using the "gem env g" command.
powermac:~ sts$ gem env g /usr/local/lib/ruby/gems/1.8
You might want to run:
[sudo] gem update --system in order to get the latest rubygems release.

Frank says:
Thanks! This error message really gave me a headache!
ernst says:
thanx too! :)
Joshua Baer says:
This worked for me! Thanks!
Rabbit says:
Works beautifully. Sometimes it’s so difficult to find little bits of information like this, so a huge thanks for writing so concisely.