Validates uri format using regexp
gem "uri_validator"
class Product < ActiveRecord::Base
  validates :video, :uri => true # default protocols are http and https
  validates :manual, :uri => %w(http https ftp)
end
Copyright (c) 2009-2012 nohup brasil, released under the MIT license