Mechanizeとのリンクをたどろうとしていますが、機能していないようです。構文が正しいようです。これを誤って参照していますか、それとも何か他のことをする必要がありますか?
問題領域
agent.page.links_with(:text => 'VG278H')[2].click
完全なコード
require 'rubygems'
require 'mechanize'
require 'open-uri'
agent = Mechanize.new
agent.get ("http://icecat.biz/en/")
#Show all form fields belonging to the first form
form = agent.page.forms[0].fields
#Enter VG278H into the text box lookup_text, submit the data
agent.page.forms[0]["lookup_text"] = "VG278H"
agent.page.forms[0].submit #Results of this is stored in Mechanize agent.page object
#Call agent.page with our results and assign them to a variable page
page = agent.page
agent.page.links_with(:text => 'VG278H')[2].click
doc = page.parser
puts doc