Forum: Ruby on Rails require_gem is obsolete. Use gem instead.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bd317a7138b72df7f49df99428496422?d=identicon&s=25 spongebob (Guest)
on 2007-04-17 12:42
(Received via mailing list)
Good Day!

I am using Rails version 1.2.3 and gem version 0.9.2 and I keep
getting this error:

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

Then what I did is I changed "require_gem" to "gem" coz that's what I
read from most websites having the same error.. but after that it gave
me another error:

/usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:266:in `load_missing_constant': uninitialized constant
ActionMailer (NameError)
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active_support/dependencies.rb:452:in `const_missing'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active_support/dependencies.rb:464:in `const_missing'
        from /var/www/rails/camfu-old/config/environment.rb:18
        from /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/
initializer.rb:41:in `run'
        from /var/www/rails/camfu-old/config/environment.rb:13
        from /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active_support/dependencies.rb:495:in `require'
         ... 23 levels...
        from /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/
server.rb:39
        from /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from script/server:3

Has this happened to anyone?
Any Help would be deeply appreciated. Thank You.
21f7ed21f11a809050594c82eab11d67?d=identicon&s=25 Robert Walker (Guest)
on 2007-04-27 15:33
(Received via mailing list)
Yes, this is a know issue.  If I remember correctly you need to make
sure you are using the latest version of rake, gems, etc.  And update
your project code by setting the environment.rb to use Rails 1.2.3.

Then execute "rake rails:update" from inside your project.  If
everything is updated properly this warning will go away.
This topic is locked and can not be replied to.