質問編集履歴
1
エラーコード追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -243,3 +243,71 @@
|
|
243
243
|
|
244
244
|
|
245
245
|
どなたか解決方法を教えていただけないでしょうか?宜しくお願いします。
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
追記
|
250
|
+
|
251
|
+
指摘していただいた所を修正したところ
|
252
|
+
|
253
|
+
Unpermitted parameter: :phones
|
254
|
+
|
255
|
+
Unpermitted parameters: :email, :family_name, :given_name, :family_name_kana, :given_name_kana
|
256
|
+
|
257
|
+
となりupdateできませんでした。表示されたのは以下になります。
|
258
|
+
|
259
|
+
```ここに言語を入力
|
260
|
+
|
261
|
+
Started PATCH "/customers/1" for 10.0.2.2 at 2018-09-07 09:38:31 +0900
|
262
|
+
|
263
|
+
Processing by Customer::CustomersController#update as HTML
|
264
|
+
|
265
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TuF5A8ETAD98R1Qlvesf4ZiH+RsHWBLCcwLVOfuOKF7AwsQKO11fmSVbJCiaxmUmN3QLNqMdMdqbuE7Trmk5Zg==", "form"=>{"customer"=>{"email"=>"sato.ichiro@example.jp", "family_name"=>"佐藤あ", "given_name"=>"一郎", "family_name_kana"=>"サトウ", "given_name_kana"=>"イチロウ", "phones"=>{"0"=>{"number"=>"0184-36-2632", "primary"=>"0"}, "1"=>{"number"=>"070-1145-6699", "primary"=>"0"}}}, "inputs_home_address"=>"1", "home_address"=>{"postal_code"=>"9204279", "prefecture"=>"長崎県", "city"=>"[\"赤巻市\"]", "address1"=>"開発1-2-3", "address2"=>"レイルズハイツ301号室"}}, "commit"=>"更新", "host"=>"fujiyoshi.nouen.com", "id"=>"1"}
|
266
|
+
|
267
|
+
Customer Load (0.5ms) SELECT `customers`.* FROM `customers` WHERE `customers`.`id` = 1 LIMIT 1
|
268
|
+
|
269
|
+
Customer Load (0.4ms) SELECT `customers`.* FROM `customers` WHERE `customers`.`id` = 1 LIMIT 1
|
270
|
+
|
271
|
+
(0.5ms) SELECT COUNT(*) FROM `phones` WHERE `phones`.`customer_id` = 1 AND `phones`.`address_id` IS NULL
|
272
|
+
|
273
|
+
HomeAddress Load (0.5ms) SELECT `addresses`.* FROM `addresses` WHERE `addresses`.`type` IN ('HomeAddress') AND `addresses`.`customer_id` = 1 LIMIT 1
|
274
|
+
|
275
|
+
Unpermitted parameter: :phones
|
276
|
+
|
277
|
+
Unpermitted parameters: :email, :family_name, :given_name, :family_name_kana, :given_name_kana
|
278
|
+
|
279
|
+
(0.2ms) BEGIN
|
280
|
+
|
281
|
+
Customer Exists (0.5ms) SELECT 1 AS one FROM `customers` WHERE `customers`.`email_for_index` = BINARY 'sato.ichiro@example.jp' AND (`customers`.`id` != 1) LIMIT 1
|
282
|
+
|
283
|
+
CACHE Customer Load (0.0ms) SELECT `customers`.* FROM `customers` WHERE `customers`.`id` = 1 LIMIT 1 [["id", 1], ["LIMIT", 1]]
|
284
|
+
|
285
|
+
CACHE Customer Load (0.0ms) SELECT `customers`.* FROM `customers` WHERE `customers`.`id` = 1 LIMIT 1 [["id", 1], ["LIMIT", 1]]
|
286
|
+
|
287
|
+
CACHE Customer Load (0.0ms) SELECT `customers`.* FROM `customers` WHERE `customers`.`id` = 1 LIMIT 1 [["id", 1], ["LIMIT", 1]]
|
288
|
+
|
289
|
+
(0.3ms) ROLLBACK
|
290
|
+
|
291
|
+
Rendering customer/customers/edit.html.erb within layouts/customer
|
292
|
+
|
293
|
+
Rendered customer/customers/_phone_fields.html.erb (2.7ms)
|
294
|
+
|
295
|
+
Rendered customer/customers/_phone_fields.html.erb (2.1ms)
|
296
|
+
|
297
|
+
Rendered customer/customers/_customer_fields.html.erb (127.0ms)
|
298
|
+
|
299
|
+
Rendered customer/customers/_home_address_fields.html.erb (22.5ms)
|
300
|
+
|
301
|
+
Rendered customer/customers/_form.html.erb (156.8ms)
|
302
|
+
|
303
|
+
Rendered customer/customers/edit.html.erb within layouts/customer (161.1ms)
|
304
|
+
|
305
|
+
Rendered customer/shared/_header.html.erb (2.8ms)
|
306
|
+
|
307
|
+
Rendered shared/_footer.html.erb (0.7ms)
|
308
|
+
|
309
|
+
Completed 200 OK in 1274ms (Views: 1159.2ms | ActiveRecord: 3.0ms)
|
310
|
+
|
311
|
+
```
|
312
|
+
|
313
|
+
全くのお手上げですので再度ご指摘いただけないでしょうか?お願いします。
|