ihower / validates_url_of

a Rails plugin to validate URL attribute and append http://

This URL has Read+Write access

name age message
file README Fri Jun 06 03:47:27 -0700 2008 Not use net/http check by default, sometimes it... [ihower]
file init.rb Tue Jun 03 12:56:57 -0700 2008 first import [ihower]
directory lib/ Thu Jan 22 10:40:49 -0800 2009 small change in validations [BioNuc]
README
= Validates URL of

This plugin validate URL attribute:

 1. If data have not http:// or https://, it append http://
 2. Check url format by regular expression
 3. Send a HTTP request to check header response (only enable in production mode and options[:enable_http_check] is 
 true)

== Usage

class Foo < ActiveRecord::Base
  validates_url_of :url, :message => 'is not valid or not responding'.t
end

# you can omit :message parameter

== Author
Wen-Tien Chang (ihower@gmail.com)

== License
Copyright (c) 2008 Handlino Inc., released under the MIT license