Skip to content

sobrinho/uri_validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uri_validator

Validates uri format using regexp

Installation

gem "uri_validator"

Usage

class Product < ActiveRecord::Base
  validates :video, :uri => true # default protocols are http and https
  validates :manual, :uri => %w(http https ftp)
end

License

Copyright (c) 2009-2012 nohup brasil, released under the MIT license

About

URI validation for ActiveModel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages