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 api.rubyonrails.org for a number of options.
hth, Bill