Ruby on Rails: Creating child objects
I’m sure this is a very simple question, but I’m just a newbie so… I have a model, Game, which has_many :piles. Pile, in turn, has_many :cards. I’m able to populate the Piles and Cards at creation of the Game, so my code at present looks something like: class Game < ActiveRecord::Base has_many :piles def … Read more