sschroed / validates_unlike

GitHub fork of the validates_unlike plug-in

This URL has Read+Write access

sschroed (author)
Fri Jun 06 06:05:40 -0700 2008
name age message
file MIT-LICENSE Loading commit data...
file README
file init.rb
directory lib/
README
Validates Unlike Plugin (v 0.1)
========================

Validates Unlike plugin validates that the value of the specified attribute doesn't match against the regular 
expression provided

Class Contact < ActiveRecord::Base
  validates_unlike :comment, :with =>/html|http|onclick|onmouseover/, 
                   :message => "comment can't include: href,http,onclick,onmouseover."
end


========================

Bug reports and feedback are always welcome. Please send them to edgargonzalez@gmail.com 
You can also visit http://www.lacaraoscura.com/2006/07/11/validates-unlike-plugin/ and post a comment.