Curious as to how to approach this same problem using ruby / rails - http://stackoverflow.com/questions/399332/fastest-way-to-retrieve-a-title-in-php
Is there a plugin or gem that anyone recommends? cheers!
Curious as to how to approach this same problem using ruby / rails - http://stackoverflow.com/questions/399332/fastest-way-to-retrieve-a-title-in-php
Is there a plugin or gem that anyone recommends? cheers!
In the same spirit as the PHP tread, lets do this with no special gems:
require 'open-uri'
open('http://www.google.com').read.match(/<title>(.*?)<\/title>/)[1]
..and out comes Google