Merge pull request #28432 from marksiemers/master

Update 'Building Complex Forms' with `inverse_of`
This commit is contained in:
Rafael França 2017-04-20 19:58:26 -04:00 committed by GitHub
commit 06580a4f97
1 changed files with 1 additions and 1 deletions

View File

@ -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