search for: umesd

Displaying 2 results from an estimated 2 matches for "umesd".

Did you mean: umesh
2006 Jan 19
7
validates_numericality_of positive integer
Hi, What is the simplest way to validate a positive integer? validates_numericality_of :foo, :integer_only => true how do I add the positive part? Do I need another validation statement for pattern matching or do I have to write a validate() funciton for my model? Thanks, Peter
2006 Jun 19
3
newbie validation
hi there. Here is the simple scenario: My active record connects to a table that contains an integer field. My form contains a text box that allows me to enter a value to get updated to the integer field. If anything gets entered that is anything other than a POSITIVE INTEGER, I want to display an error. I have noticed that if I create a new active record like @record =