Skip to content
Browse files

Fix typo in validations documentation #1938 [court3nay]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8910de6 commit 73594d88f3c396596179bf680f363fd0b2543238 @jamis jamis committed Aug 14, 2005
Showing with 4 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +2 −1 activerecord/lib/active_record/validations.rb
View
2 activerecord/CHANGELOG
@@ -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]
View
3 activerecord/lib/active_record/validations.rb
@@ -179,7 +179,8 @@ def count
# 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" }

0 comments on commit 73594d8

Please sign in to comment.
Something went wrong with that request. Please try again.