Created
August 3, 2017 19:17
-
-
Save oliviachang29/80352d5b992a3f77d7629d55ad5dc9c1 to your computer and use it in GitHub Desktop.
app/models/parent.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent < ActiveRecord::Base | |
has_many :kids | |
accepts_nested_attributes_for :kids | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment