Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
lib
README

README

This directory shows how to use validates_url as a library file.  To get
started, copy lib/validates_url.rb into your Rails application's lib/
directory.

ValidatesUrl
============

Adds URL validation for your ActiveRecord models.  For example:

  class NewsItem < ActiveRecord::Base

    validates_url

  end
  
Without an argument, validates the attribute 'url'.  To validate a different
attribute, pass its name as argument, for example:

  validate_url :profile_url


Something went wrong with that request. Please try again.