質問編集履歴
1
binding.pryのエラー文を削除しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,17 +18,15 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
[1] pry(#<OrdersController>)>
|
21
|
+
[1] pry(#<OrdersController>)> params
|
22
22
|
|
23
|
-
|
23
|
+
=> <ActionController::Parameters {"utf8"=>"✓", "authenticity_token"=>"oEWDCU7hgArdapqijWBEwMF9hJJ2pAIQQBL7Pqnh68BW1sPDs7kxLY2aV4Mx56Rzo3qNsJAy7ZKQCq963ah5WQ==", "user_food"=>{"food"=>"りんご", "price"=>"400", "quantity"=>"1"}, "commit"=>"1", "controller"=>"orders", "action"=>"create"} permitted: false>
|
24
24
|
|
25
|
-
...rs", "action"=>"create"} params
|
26
|
-
|
27
|
-
... ^~~~~~
|
28
|
-
|
29
|
-
[
|
25
|
+
[2] pry(#<OrdersController>)> user_food_params
|
30
26
|
|
31
27
|
=> <ActionController::Parameters {"food"=>"りんご", "price"=>"400", "quantity"=>"1"} permitted: true>
|
28
|
+
|
29
|
+
[3] pry(#<OrdersController>)>
|
32
30
|
|
33
31
|
|
34
32
|
|