On Thu, Feb 10, 2011 at 10:22 AM, Jason King <[email protected]> wrote:
> Weird, I've never worked on any project that had a numericality requirement
> not met by vno.

You must have mis-read.  I said that validates_numericality_of also
exhibited this:
| I've never worked at two places that had the same validation rules.

To illustrate:

{ :greater_than => 2 }

Is a different validation rule to

{ :less_than => 10 }

But nonetheless, the *core* of the matter is that the format for "a
number" does not change - the subset of values you permit does.

In the same way,

{ :domain_in => /\.edu\./ }

Would be a different validation rule to

{ :domain_in => /\.jp$/ }

But nonetheless, the *core* of the matter is that the format for "an
email address" does not change - the subset of values you permit does.

I hope you can see the parallels.

TX

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to