From 73594d88f3c396596179bf680f363fd0b2543238 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sun, 14 Aug 2005 08:50:51 +0000 Subject: Fix typo in validations documentation #1938 [court3nay] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/validations.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index d2bd5b6511..ecc192247a 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -179,7 +179,8 @@ module ActiveRecord # person.count # => 2 # person.errors.on "last_name" # => "can't be empty" # person.errors.on "phone_number" # => "has invalid format" - # person.each_full { |msg| puts msg } # => "Last name can't be empty\n" + + # person.errors.each_full { |msg| puts msg } + # # => "Last name can't be empty\n" + # "Phone number has invalid format" # # person.attributes = { "last_name" => "Heinemeier", "phone_number" => "555-555" } -- cgit v1.2.3