質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,41 +32,41 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
35
|
+
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4jyslJtI/ALBv+pGEoSEb7ikIVHioo+6ZAkN4XkcEHEbAi/MeJr8RvS+/XDAh7nMJOHfrFGpiTDt8yI8kwq6KQ==", "form_advicediary_collection"=>{"advicediaries_attributes"=>{"0"=>{"advicemenu_id"=>"1", "weight"=>"100", "reps"=>"10", "weightsecond"=>"100", "repssecond"=>"10", "weightthird"=>"100", "repsthird"=>"10", "memo"=>"1", "user_id"=>"9", "idealweight_id"=>"4", "useradvice_id"=>"6"}, "1"=>{"advicemenu_id"=>"2", "weight"=>"100", "reps"=>"10", "weightsecond"=>"100", "repssecond"=>"10", "weightthird"=>"100", "repsthird"=>"10", "memo"=>"2", "user_id"=>"9", "idealweight_id"=>"4", "useradvice_id"=>"6"}, "2"=>{"advicemenu_id"=>"3", "weight"=>"50", "reps"=>"10", "weightsecond"=>"50", "repssecond"=>"10", "weightthird"=>"50", "repsthird"=>"10", "memo"=>"3", "user_id"=>"9", "idealweight_id"=>"4", "useradvice_id"=>"6"}, "3"=>{"advicemenu_id"=>"4", "weight"=>"0", "reps"=>"10", "weightsecond"=>"0", "repssecond"=>"10", "weightthird"=>"0", "repsthird"=>"10", "memo"=>"4", "user_id"=>"9", "idealweight_id"=>"4", "useradvice_id"=>"6"}}}, "commit"=>"今日のトレー ニングを完了する"}
|
40
|
+
|
41
|
+
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 ORDER BY `users`.`id` ASC LIMIT 1
|
42
|
+
|
43
|
+
↳ /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.4.3/lib/active_record/log_subscriber.rb:98
|
44
|
+
|
45
|
+
Unpermitted parameters: :user_id, :idealweight_id, :useradvice_id
|
46
|
+
|
47
|
+
Unpermitted parameters: :user_id, :idealweight_id, :useradvice_id
|
48
|
+
|
49
|
+
Unpermitted parameters: :user_id, :idealweight_id, :useradvice_id
|
50
|
+
|
51
|
+
Unpermitted parameters: :user_id, :idealweight_id, :useradvice_id
|
52
|
+
|
53
|
+
(0.1ms) BEGIN
|
54
|
+
|
55
|
+
↳ app/models/form/advicediary_collection.rb:15
|
56
|
+
|
57
|
+
Advicemenu Load (0.2ms) SELECT `advicemenus`.* FROM `advicemenus` WHERE `advicemenus`.`id` = 1 LIMIT 1
|
58
|
+
|
59
|
+
↳ app/models/form/advicediary_collection.rb:16
|
60
|
+
|
61
|
+
(0.2ms) ROLLBACK
|
62
|
+
|
63
|
+
↳ app/models/form/advicediary_collection.rb:15
|
64
|
+
|
65
|
+
Redirected to https://ae4965dfa4a04e8c87367d6e80606bec.vfs.cloud9.ap-northeast-1.amazonaws.com/advicediaries/choice
|
66
|
+
|
67
|
+
Completed 302 Found in 104ms (ActiveRecord: 3.6ms)
|
68
|
+
|
69
|
+
|
70
70
|
|
71
71
|
```
|
72
72
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -463,3 +463,11 @@
|
|
463
463
|
別途なにか必要な情報がありました仰ってください。
|
464
464
|
|
465
465
|
何卒宜しくお願いします。
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
## 追記
|
470
|
+
|
471
|
+
要は1つのフォームで同モデルのレコードを一括複数登録できれば良いです。
|
472
|
+
|
473
|
+
もし別途やり方等ございましたら教えていただけますと幸いです。
|