./script/../config/boot.rb:29: undefined method `gem' for main:Object (NoMethodError)

11 views
Skip to first unread message

dodgyboz

unread,
Aug 29, 2007, 7:53:24 AM8/29/07
to Ruby on Rails: Talk
I am new to svn but have just created a repository on my server using
svnserve. I have done all the ignore *.log files and temp directory
stuff and have just tryed to generate my first controller useing
script/generate controller ManageProducts --svn and am getting the
error below

dodgyboz@shuttle:~/itsagoal/trunk$ ruby script/generate controller
ManageProductRange --svn

./script/../config/boot.rb:29: undefined method `gem' for main:Object
(NoMethodError)
from script/generate:2:in `require'
from script/generate:2

Can anyone help me out with this little problem??

dodgyboz

unread,
Aug 29, 2007, 8:30:35 AM8/29/07
to Ruby on Rails: Talk
I have found the answer, or at least this has worked for me so i no
longer have a problem.

Sometimes gem needs a little reminder. Running "sudo gem update --
system" fixes the bug on ubuntu OS anyway

ghostt

unread,
Sep 26, 2007, 7:29:03 AM9/26/07
to Ruby on Rails: Talk
Came across this post while I was trying to fix a similar problem.
Your answer solved my problem as well. Thanks.

Reply all
Reply to author
Forward
0 new messages