HTTP url validation plugin improved plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install https://modzer0.cs.uaf.edu/repos/hank/code/http_url_validation_improved/
Check for content type:
validates_http_url :url, :content_type => "text/html"
Do not check for content type, just make sure the site is accessible:
validates_http_url :website
Make sure there is a DNS entry for a domain
validates_http_domain :domain # Domain must be in 'www.site.com' for or 'site.com' form. No http://, no path.
This example will make sure the value entered for the URL field points to a publicly accessible HTML page, and the photo field points to an image:
validates_http_url :image_url, :content_type => "image" # :content_type checks for a matching substring, so any image will validate
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: Guest, 10 months ago

