Extremely trivial. Keep letters out of the phone number in this example. As it stands it's just validating that a single digit exists, while other crud could be in 'phone_number'.
--- lib/active_record/validations.rb.orig 2007-10-25 23:59:32.000000000 -0500
+++ lib/active_record/validations.rb 2007-10-26 00:00:31.000000000 -0500
@@ -252,7 +252,7 @@
# protected
# def validate
# errors.add_on_empty %w( first_name last_name )
- # errors.add("phone_number", "has invalid format") unless phone_number =~ /[0-9]*/
+ # errors.add("phone_number", "has invalid format") unless phone_number =~ /^[0-9\-]*$/
# end
#
# def validate_on_create # is only run the first time a new object is saved