./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use gem instead.

Now that I upgraded Rails to 1.2.1, I get this annoying message every time I run script/generate. This message is nothing to worry about since it’s harmless. However, if you’re annoyed with the message like me, then there’s a quick fix to it.

In order to remedy this, go to boot.rb and replace “require_gem” with just “gem”. There should be two incidents of this. Just make sure you don’t touch anything like RUBY_GEM_VERSION.

———————

# Update: New version of Rails, 1.2.2 has fixed the problem. As long as you’re using the latest Rails, this issue no longer pops up.
———————

Comments

Comments are closed.

Powered by Olark