Rails/Gem errors?

David Winter wrote: > Is anyone else getting annoying warning messages? > > /usr/local/bin/rails:17:Warning: require_gem is obsolete. Use gem > instead. > > I get these messages when using the rails command, rake, script/generate > etc etc. > > I'm using Rails 1.2.1

This has more to do with the new rubygems than rails - new versions of everything seem to be coming out at once!

Craig White wrote: >> >> This has more to do with the new rubygems than rails - new versions of >> everything seem to be coming out at once! > ---- > ok, I updated to 0.9.1 and now... > > # gem pristine --all > Restoring gem(s) to pristine condition... > Rebuilt all bin stubs > All installed gem files are already in pristine condition > # gem check > # gem update > Updating installed gems... > ERROR: While executing gem ... (NoMethodError) > undefined method `refresh' for #<Hash:0xb7d212cc> > > ugh... anyone know how to fix this? > > Craig

I'm pretty sure you want to do

    sudo gem update

Craig White wrote: >> >> This has more to do with the new rubygems than rails - new versions of >> everything seem to be coming out at once! > ---- > ok, I updated to 0.9.1 and now... > > # gem pristine --all > Restoring gem(s) to pristine condition... > Rebuilt all bin stubs > All installed gem files are already in pristine condition > # gem check > # gem update > Updating installed gems... > ERROR: While executing gem ... (NoMethodError) > undefined method `refresh' for #<Hash:0xb7d212cc> > > ugh... anyone know how to fix this? > > Craig

I'm pretty sure you want to do

    sudo gem update

Craig White wrote: >> > Rebuilt all bin stubs >> >> I'm pretty sure you want to do >> >> sudo gem update > ---- > I'm pretty sure that I am not alone with this problem since upgrading to > gem 0.9.1 > > https://rubyforge.org/tracker/index.php?func=detail&aid=7995&group_id=126&atid=575 > > Craig

Removing

/usr/local/lib/ruby/gems/1.8/source_cache

solved the problem for me.