回答編集履歴
1
ハイパーリンクの追加
answer
CHANGED
@@ -7,4 +7,4 @@
|
|
7
7
|
のように`update_only: true`を付与したところ解決しました。
|
8
8
|
|
9
9
|
参考にした記事
|
10
|
-
https://qiita.com/yagince/items/fc1324a01a16cd20e2e8
|
10
|
+
[has_oneな関連をaccepts_nested_attributes_forしている場合にattributesで代入した場合idが無いとdestroyされる](https://qiita.com/yagince/items/fc1324a01a16cd20e2e8)
|