HTTP URL Validator plugin

Plugin details

To verify that a URL entered in a form is really valid, and in some cases, that it returns an appropriate content type.

Websitehttp://www.ccjr.name/blog/2006/01/25/http-url-validator Author Cloves Carnerio Jr. Tags http, url LicenseUnknown

Documentation

Here’s how you can use it your model:

Class Article < ActiveRecord::Base
validates_http_url :url, :content_type => "text/html"
validates_http_utl :photo, :content_type => "image"
end


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.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: scott, 7 months ago