Re: [Rails] Help needed understanding "fields_for" and resultant controller code

2010-12-29 Thread Philip Hallstrom
On Dec 29, 2010, at 11:33 AM, Jim Burgess wrote: > Hi, > > I'm trying to understand some code in a book I'm reading and was hoping > someone could tell me if I have understood it correctly. > > There are two models, an employee model and a department model. A > department has_many :employees an

[Rails] Help needed understanding "fields_for" and resultant controller code

2010-12-29 Thread Jim Burgess
Hi, I'm trying to understand some code in a book I'm reading and was hoping someone could tell me if I have understood it correctly. There are two models, an employee model and a department model. A department has_many :employees and an employee belongs_to :department. Here's a snippet of code f