Hi, I’m having problems with mechanize when I try to subclass it in a
rails environment using script/console.
The following code works fine:
agent = WWW::Mechanize.new
But this one doesn’t work:
class Alfa < WWW::Mechanize; end
agent = Alfa.new
Everytime I call the get instance method, I get the following error:
NoMethodError: You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.parse
I tried to look at the code in ‘page.rb’ but I haven’t been able to
figure out the error. Am I missing something here?
Thanks in advance.