This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README | Fri Aug 08 23:25:20 -0700 2008 | [kristinalim] |
| |
init.rb | Fri Aug 08 11:28:51 -0700 2008 | [kristinalim] |
| |
lib/ | Fri Aug 08 11:28:51 -0700 2008 | [kristinalim] |
README
validates_as_phone
==================
Strict validation module for phone numbers that supports classifications and
areas.
= General usage
== Installation
You can install the plugin the traditional way. Go to your application root
and do:
script/plugin install git://github.com/kristinalim/validates_as_phone.git
== Validate your model attributes
Example:
class Person < ActiveRecord::Base
validates_as_phone :phone, :allow_blank => true, :set => true
end
= License
Written by Kristina Lim (http://i-think.com.ph/kristina/)
Copyright (c) 2008 Syndeo Media
http://syndeomedia.com
= Contributing
If you wish to contribute to the project, you may contact the author through:
'kristinasyndeomediacom'.insert(8, '@').insert(20, '.')
= Acknowledgements
This plugin is named after the validates_as_phone plugin of Jerrod Blavos
(http://code.google.com/p/validates-as-phone/). Admittedly, this plugin was
built over the latter, but as the purposes of this plugin is more complex than
that of the minimal one, practically all of the code has been written over by
now.





