Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a rails plugin that validates a url format, and optionall checks to see if it resolves
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.