Validates format of URI
An ActiveModel field validator using the URI parsing library included with ruby to validate that a given field matches the format of a URI as given by RFC 2396. See URI#parse for more information.
Installation
Add the following to your Gemfile: gem 'validates-format-of-uri', '~> 0.0.1', :require => 'mirroring_house/validations/validates_format_of_uri'
Restrictions
- Does not validate existance of domain
- Does not validate that the domain is actually registered
Credits
Many thanks to the inspiration provided by https://gist.github.com/102138