dodgyboz
2007-Aug-29 11:53 UTC
./script/../config/boot.rb:29: undefined method `gem'' for main:Object (NoMethodError)
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?? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
dodgyboz
2007-Aug-29 12:30 UTC
Re: ./script/../config/boot.rb:29: undefined method `gem'' for main:Object (NoMethodError)
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 On Aug 29, 12:53 pm, dodgyboz <dodgy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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??--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ghostt
2007-Sep-26 11:29 UTC
Re: ./script/../config/boot.rb:29: undefined method `gem'' for main:Object (NoMethodError)
Came across this post while I was trying to fix a similar problem. Your answer solved my problem as well. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---