error with has_one and accepts_nested_attributes_for