Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Validates Unlike

Validates Unlike

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.

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'