Fix typo in validations documentation #1938 [court3nay]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
8910de6a54
commit
73594d88f3
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Fix typo in validations documentation #1938 [court3nay]
|
||||
|
||||
* Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]
|
||||
|
||||
* Fix typo in count_by_sql documentation #1969 [Alexey Verkhovsky]
|
||||
|
|
|
@ -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" }
|
||||
|
|
Loading…
Reference in New Issue