In the database table, there is an integer column, lets call it age, and I ensure that only numbers (no + or - sign) are inputted with:

validates_format_of :age_before_type_cast, :with => /^[\d]*$/

This works fine but if an error message is generated, it would be something like "age before type cast is invalid". Is there a way to have the error message be more like "age is invalid"?