Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
branch: master

This branch is 91 commits behind kaize:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
validates.gemspec

README.md

Validates

Summary

Email, Slug, Url simple format validators for Rails 3

Installing

Add this to your Gemfile:

gem "validates"

Usage

model User < ActiveRecord::Base
  validates :email, :email => true
  validates :site, :url => true, :allow_blank => true
  validates :inn, :inn => true   
end

model Page < ActiveRecord::Base
  validates :slug, :slug => true
end

Relise notes

0.0.2 - Fixed email validator. If email not presence, should be validate anyway.

0.0.3 - Add inn validator.

Similar

Something went wrong with that request. Please try again.