Validates URL Plugin

Implemented as a class method on ActiveRecord::Base, validates_url will check the provided field against a known URL pattern. If valid, it will perform a secondary check (via HTTP) and follow any redirects until it either receives success, error, or a maximum number of redirects.

To use:

  class Link < ActiveRecord::Base
    validates_url :url
  end