Plugins - Validates Numericality Of

StarAdd to favorites

Extends the validates_numericality_of validation by adding :gt, :gte:, :lt, :lte, :eq, :even, :odd conditions

Bob Silva

http://www.railtie.net/articles/2006/01/27/defining-numericality

  • Currently 3.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
viktor tron 15 Dec 2007

this is obsolete with rails 2.0 as far as I can tell

Kevin Olbrich 23 Aug 2006

Numbers are converted to integers before doing comparisons, this can cause problems with numbers being truncated improperly.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?