a rails plugin that validates a url format, and optionall checks to see if it resolves
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
README.markdown
init.rb

README.markdown

validate_url

Provides validate_url validation to ActiveRecord models.

Usage

Install, then

class User < ActiveRecord::Base validate_url :url, :check_http => true end

Has the same options as validates_format_of with the addition of check_http. All this does is check to see if the url returns a HTTPSuccess response. If it doesn't, it will throw the error.

See lib/validate_url.rb for specific options.

Copyright (c) 2009 Adrian Titus, released under the MIT license