From: "Patricio A. Bruna" Date: 2011-09-09T22:36:22+09:00 Subject: Re: Submitting a URL with Mechanize Does showURL returns the URL? Patricio Bruna V. http://www.itlinux.cl (+56-9) 8899 6618 El 09-09-2011, a las 7:36, dwight schrute escribió: > Hi, > > I have a function called showURL, which prints out a URL when I do this: > > puts master.showURL > > Where master is an instance of the class URL, which I have previously > defined. showURL is a method defined in the URL class. > > I am using Mechanize to get URLS, like this: > > agent = Mechanize.new > > and I want to try an submit the URL I have created, something like this: > > agent.get(puts master.showURL) > > This doesn't seem to work. > > Can anyone give me a hand? > > Many thanks in advance. > > Dwight > > -- > Posted via http://www.ruby-forum.com/. >