From: Dan Mansfield Date: 2010-09-13T06:54:11+09:00 Subject: Re: Mechanize file save on generated link thanks, so my script is now: .... invoice_page = agent.get(URL_BILLING) link = invoice_page.links_with(:href => "/be-portal/downloadPdf") File.open('myfile', 'w+') do |file| file << agent.get_file(link['href']) end results in: C:/ruby/test.rb:27:in `[]': can't convert String into Integer (TypeError) from C:/ruby/test.rb:27:in `block in
' from C:/ruby/test.rb:26:in `open' from C:/ruby/test.rb:26:in `
' what is the proper method to see the response back from clicking the link? -- Posted via http://www.ruby-forum.com/.