mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Minor documentation fix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
86a571090c
commit
49bee8826a
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue