Re: [Rails] Re: noob question on associated records and their controller

2010-03-09 Thread Jeremy Chase
You should just be able to do child.parent -- Jeremy Chase http://twitter.com/jeremychase On Tue, Mar 9, 2010 at 12:51 PM, Marnen Laibow-Koser wrote: > Grary wrote: > > Hi, > > > > I have controllers for two models between which there exists a > > belongs_to/has_one relationship. > > > > How d

[Rails] Re: noob question on associated records and their controller

2010-03-09 Thread Marnen Laibow-Koser
Grary wrote: > Hi, > > I have controllers for two models between which there exists a > belongs_to/has_one relationship. > > How do I reference the parent model object in the child controller so > that I can later recover the child object in the parent controller, > i.e., create and "attach" the

[Rails] Re: noob question on associated records and their controller

2010-03-09 Thread Marnen Laibow-Koser
Grary wrote: > Hi, > > I have controllers for two models between which there exists a > belongs_to/has_one relationship. > > How do I reference the parent model object in the child controller so > that I can later recover the child object in the parent controller, > i.e., create and "attach" the