mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix typo
This commit is contained in:
parent
5debc65c35
commit
de829f871b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ module ActiveRecord
|
|||
# post = Post.create(:title => 'ruby rocks')
|
||||
# post.comments.create(:body => 'hello world')
|
||||
# post.comments[0].body = 'hi everyone'
|
||||
# post.save # => saves both post and comment, with 'hi everyone' as title
|
||||
# post.save # => saves both post and comment, with 'hi everyone' as body
|
||||
#
|
||||
# Destroying one of the associated models as part of the parent's save action
|
||||
# is as simple as marking it for destruction:
|
||||
|
|
Loading…
Reference in a new issue