Displaying 1 result from an estimated 1 matches for "build_address_email".
2006 May 19
2
1 Form for Model containing another Model??
Hi,
I can have a Person model with a "has_one :address_email" association,
then do the following in my controller:
@person = Person.new
@person.address_email = AddressEmail.new
But, when I have 1 form for "Person" in my view I can''t bind fields in
the @person.address_email object with text_field or text_field_tag
helpers without getting a "undefined local