DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-19 20:44 UTC
undefined method `gem'' for main:Object (NoMethodError)
fiercefe@sh113 [~/public_html/ruby_test]# ruby script/server ./script/../config/boot.rb:29: undefined method `gem'' for main:Object (NoMethodError) from script/server:2 I did: rails ruby_test then I tried to create a controller as shown above and incurred errors, wondering if you know what''s wrong. Additionally I can''t run the command: ruby script/server to start the server on the ruby folder. Any idea what to do from here? Should I contact my hosting? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bill Walton
2007-Feb-19 20:56 UTC
Re: undefined method `gem'' for main:Object (NoMethodError)
I think you need to start your webserver from the application root directory. hth, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jean-François Trân
2007-Feb-19 21:17 UTC
Re: undefined method `gem'' for main:Object (NoMethodError)
2007/2/19, DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> fiercefe@sh113 [~/public_html/ruby_test]# ruby script/server > ./script/../config/boot.rb:29: undefined method `gem'' for main:Object > (NoMethodError) > from script/server:2 > > > I did: rails ruby_test > > then I tried to create a controller as shown above and incurred > errors, wondering if you know what''s wrong. Additionally I can''t run > the command: ruby script/server to start the server on the ruby > folder. > > Any idea what to do from here? Should I contact my hosting?You''ve got Rails 1.2.2 and Rubygems < 0.9.0, and gem replaces require_gem method (see : http://weblog.rubyonrails.org/2007/2/6/rails-1-2-2-sqlite3-gems-singular-resources ). So downgrade Rails or upgrade RubyGems. -- Jean-François. -- Ruby ( http://www.rubyfrance.org ) on Rails ( http://www.railsfrance.org ) --~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---