I have a has_one relationship that must exist:
has_one :child, :dependent => :destroy
validates_presence_of :child
In my controller I build the child on new with:
@parent.build_child
When the form is submitted with errors, the render ends up losing the built child. This causes my fields_for to be blank, thus preventing the user from inputting the required child field(s). Any ideas?
Figured it out:
Was supposed to be: