RailsCasts Pro episodes are now free!

Learn more or hide this

Peter Fisher-Duke's Profile

GitHub User: zepterfd

Site: www.leetllama.com

Comments by Peter Fisher-Duke

Avatar

If you are getting errors like this:

ruby
> agent = WWW::Mechanize.new
NameError: uninitialized constant Object::WWW
        from (irb):7
        from /.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `<main>'

I believe WWW::Mechanize.new is now depreciated and should be Mechanize.new instead:

ruby
> agent = Mechanize.new
 => #<Mechanize:0x99960c0 @agent=#<Mechanize::HTTP::Agent:0x999605c

Source: https://webrat.lighthouseapp.com/projects/10503/tickets/368-www-in-wwwmechanize-deprecated