[Wtr-general] Breaking code into several classes and methods
Bret Pettichord
bret at pettichord.com
Sun Jun 17 11:09:23 EDT 2007
Jeff Fry wrote:
> It complains about this line in particular:
> if $ie.link(:text, page.link_to_text).exists?
>
> But when I try it in irb it seems that page.link_to_text shouldn't be
> a problem:
> irb(main):040:0> $page = Page.new("c_eastwood",
> "/view?id=%239202a8c04000641f800000000056de6", "Mystic River")
> => #<Page:0x2dafe24 @link_to_test="Mystic River",
> @url="/view?id=%239202a8c0400641f8000000000056de6", @key="c_eastwood">
> irb(main):041:0> $page.link_to_test
> => "Mystic River"
you've confused link_to_text for link_to_test
More information about the Wtr-general
mailing list