From 49bee8826acb2ec4dc638fd42b69342913e21ac5 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Tue, 25 Oct 2005 10:44:07 +0000 Subject: Minor documentation fix git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/validations.rb') diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index ca50cef5a2..c3a67f9d91 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -176,7 +176,7 @@ module ActiveRecord # person = Person.new("first_name" => "David", "phone_number" => "what?") # person.save # => false (and doesn't do the save) # person.errors.empty? # => false - # person.count # => 2 + # person.errors.count # => 2 # person.errors.on "last_name" # => "can't be empty" # person.errors.on "phone_number" # => "has invalid format" # person.errors.each_full { |msg| puts msg } -- cgit v1.2.3