class User < ActiveRecord::Base
validates_format_of :url, :with => URI::regexp(%w(http https))
end
Reference: Stackoverflow
class User < ActiveRecord::Base
validates_format_of :url, :with => URI::regexp(%w(http https))
end
Reference: Stackoverflow