No, your new would be something like: def new hobo_new # this sets up a new Person or grabs the info from the form @person.home.build if @person.home.blank? # make a new address for home association if there isn't one @person.work.build if @person.work.blank? # similarly end
You'll also need to add :accessible => true on the home and work associations in the person model. You might be able to get by with the default form after you set that option though I'm not 100% sure with belongs_to associations. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/PDkDxZYXzhQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
