diff options
author | Cody Fauser <cody@jadedpixel.com> | 2008-08-15 09:31:01 -0400 |
---|---|---|
committer | Cody Fauser <cody@jadedpixel.com> | 2008-08-15 09:31:01 -0400 |
commit | 061923371cc8f24b93aedb7842938a69fea6ac19 (patch) | |
tree | e59ed6c5e158d7f38ce3c39b0d060df1253c68a5 | |
parent | 47e79cbf776c045012ecf2e2723fb640205c852c (diff) | |
download | rails-061923371cc8f24b93aedb7842938a69fea6ac19.tar.gz rails-061923371cc8f24b93aedb7842938a69fea6ac19.tar.bz2 rails-061923371cc8f24b93aedb7842938a69fea6ac19.zip |
Fix tiny typo in example
-rw-r--r-- | activeresource/lib/active_resource/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/validations.rb b/activeresource/lib/active_resource/validations.rb index 5019db4f38..4bc906d291 100644 --- a/activeresource/lib/active_resource/validations.rb +++ b/activeresource/lib/active_resource/validations.rb @@ -231,7 +231,7 @@ module ActiveResource # 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) |