回答編集履歴

1

2017/03/06 07:13

投稿

moke
moke

スコア2241

test CHANGED
@@ -66,9 +66,9 @@
66
66
 
67
67
  ```ruby
68
68
 
69
- def address_cat_params
69
+ def product_params
70
70
 
71
- params.require(:address_cat).permit(:id,:name,~略~,comments_attributes: [:id,:comment])
71
+ params.require(:product).permit(:id,:name,~略~,comments_attributes: [:id,:comment])
72
72
 
73
73
  end
74
74