Re: error message ''undefined method `require_gem'' for main:Object (NoMethodError)''--how to resolve?

Frederick Cheung
Tue, 30 Sep 2008 16:35:05 -0000

On Sep 30, 5:18 pm, Kenneth McDonald
<kenneth.m.mcdon...-rphTv4pjVZMJGwgDXS7ZQA@public.gmane.org>
wrote:
> I''m getting the following when doing a db:migrate after installing
RoR
> 2+:
>
> Macintosh-4:ui Ken$ rake db:migrate
> /usr/local/bin/rake:17: undefined method `require_gem'' for
main:Object
> (NoMethodError)
>
> I have done a '' sudo gem update --system''. Any thoughts
as to what
> might be causing this?
>

Your app was written for an old version of rubygems. require_gem was
deprecated a while back (replaced with gem) and eventually removed.
If you''ve just updated your app to a new version of rails, then
running rake rails:update will update things like boot.rb which may
have been using require_gem

Fred
> This is on OS X 10.5
>
> Thanks,
> Ken
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com