diff options
author | Bernard Kroes <bernard@shiftf5.nl> | 2012-04-21 22:16:38 +0200 |
---|---|---|
committer | Bernard Kroes <bernard@shiftf5.nl> | 2012-04-21 22:16:38 +0200 |
commit | be4a44f1f974e7edf2e602708002599c14ee4e49 (patch) | |
tree | ff611c0b10839ec1a2dd8dc8810c2368a4ee42fd /activemodel | |
parent | a719843d31042690fa4fa8f55bc8a647d360b2a8 (diff) | |
download | rails-be4a44f1f974e7edf2e602708002599c14ee4e49.tar.gz rails-be4a44f1f974e7edf2e602708002599c14ee4e49.tar.bz2 rails-be4a44f1f974e7edf2e602708002599c14ee4e49.zip |
Fixed expected value in comment. Removed duplicate lines in example.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/README.rdoc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index 7d13a0123b..9b05384792 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -26,7 +26,7 @@ to integrate with Action Pack out of the box: <tt>ActiveModel::Model</tt>. person = Person.new(:name => 'bob', :age => '18') person.name # => 'bob' person.age # => 18 - person.valid? # => false + person.valid? # => true It includes model name introspections, conversions, translations and validations, resulting in a class suitable to be used with Action Pack. @@ -116,9 +116,6 @@ behavior out of the box: person.errors.full_messages # => ["Name can not be nil"] - person.errors.full_messages - # => ["Name can not be nil"] - {Learn more}[link:classes/ActiveModel/Errors.html] * Model name introspection |