See Michael Bleigh’s original post for details.
But in the mean time, taking advantage of the regular expression method of the URI class lets you do this for validating URLs:
class Web
validates_format_of :website, :with => URI::regexp(%w(http https))
end