Check Parameter is Integer

Hi Mark,

Mark Dodwell wrote:

How can I check to see if a parameter is a number or not. Bear in mind it may be nil so I need to cope with that situation too.

In your model...

validates_numericality_of :some_key

Check the doc at for a number of options.

hth, Bill