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
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
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
3 matches
Mail list logo