From: Jano Svitok Date: 2007-08-25T04:09:40+09:00 Subject: Re: Problems getting Mechanize working... On 8/23/07, Sergio Ruiz wrote: > i am trying to get mechanize to work, but i am getting the following > error.. > > does anyone have any ideas? > > this happens in irb and while running scripts.. if i do an > agent.methods, i get not 'get' in the list either.. > > very weird.. > > i would appreciate any help > > thanks! > > irb(main):009:0> agent = WWW::Mechanize.new > => # > irb(main):010:0> agent.get('http://google.com/') > NoMethodError: undefined method `get' for # > from (irb):10 > irb(main):011:0> I don't know much about mechanize, but this code worked for me. (with additional require 'mechanize' before) Try reinstalling mechanize, or run test_all.rb in mechanize's test directory to check your installation. Are you requiring the top-level mechanize.rb?