From: Wyatt Greene Date: 2008-02-01T10:10:00+09:00 Subject: Re: How can I save the current browser title to a variable? On Jan 31, 3:19 pm, Darin Duphorn wrote: > I'm new to Ruby, but I cannot find a way to get the browser title. > > any help would be great. > > Thanks > -- > Posted viahttp://www.ruby-forum.com/. This depends on the relationship between your Ruby code and the browser. One case is that your Ruby program is running along side the browser on the same computer. This is the case with the watir gem, for example. In this case, you can interact with Internet Explorer using Ruby's Win32OLE library. In the case of Ruby on Rails, your Ruby program is communicating with a client browser via HTTP. In this case, you can have some client- side JavaScript get the browser title and send the information as an HTTP parameter to your Ruby on Rails program.