Browse files

Fix tiny typo in example

  • Loading branch information...
1 parent 47e79cb commit 061923371cc8f24b93aedb7842938a69fea6ac19 Cody Fauser committed Aug 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activeresource/lib/active_resource/validations.rb
View
2 activeresource/lib/active_resource/validations.rb
@@ -231,7 +231,7 @@ def from_xml(xml)
# person.valid? # => false
# person.errors.empty? # => false
# person.errors.count # => 1
- # person.errors.full_messages # => "Last name can't be empty"
+ # person.errors.full_messages # => ["Last name can't be empty"]
# person.errors.on(:last_name) # => "can't be empty"
# person.last_name = "Halpert"
# person.save # => true (and person is now saved to the remote service)

0 comments on commit 0619233

Please sign in to comment.