Plugins - HTTP URL Validator

StarAdd to favorites

Allows the model to validate if a user-entered URL can be reached by an HTTP request.

Example:

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

Cloves Carnerio Jr.

http://www.ccjr.name/blog/2006/01/25/http-url-validator

  • Currently 3.4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?