提交 06580a4f 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #28432 from marksiemers/master

Update 'Building Complex Forms' with `inverse_of`
......@@ -877,7 +877,7 @@ Active Record provides model level support via the `accepts_nested_attributes_fo
```ruby
class Person < ApplicationRecord
has_many :addresses
has_many :addresses, inverse_of: :person
accepts_nested_attributes_for :addresses
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册