diff options
author | Florian Weber <csshsh@gmail.com> | 2005-10-25 10:44:07 +0000 |
---|---|---|
committer | Florian Weber <csshsh@gmail.com> | 2005-10-25 10:44:07 +0000 |
commit | 49bee8826acb2ec4dc638fd42b69342913e21ac5 (patch) | |
tree | 24561b733565604ffbc176bac71d7c78a5665911 /activerecord/lib | |
parent | 86a571090c43cd00284e563b63a79016acc2f18b (diff) | |
download | rails-49bee8826acb2ec4dc638fd42b69342913e21ac5.tar.gz rails-49bee8826acb2ec4dc638fd42b69342913e21ac5.tar.bz2 rails-49bee8826acb2ec4dc638fd42b69342913e21ac5.zip |
Minor documentation fix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |