mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed expected value in comment. Removed duplicate lines in example.
This commit is contained in:
parent
a719843d31
commit
be4a44f1f9
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue