質問編集履歴
2
サーバーログの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -345,3 +345,47 @@
|
|
345
345
|
Completed 200 OK in 45ms (Views: 39.4ms | ActiveRecord: 0.4ms)
|
346
346
|
|
347
347
|
```
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
サーバーログの追加
|
358
|
+
|
359
|
+
```ここに言語を入力
|
360
|
+
|
361
|
+
Started POST "/account_contents" for 111.217.105.86 at 2020-03-15 23:50:24 +0000
|
362
|
+
|
363
|
+
Cannot render console from 111.217.105.86! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
364
|
+
|
365
|
+
Processing by AccountContentsController#create as HTML
|
366
|
+
|
367
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"HxsG+Ujsh+G0+TfAfL6KHCljPLMfCQW43VS0u50GEFWIOPHpnBgoW1V2MzkSO3j+M9SRgDZVPQdGKQltyZ4PoA==", "account_content"=>{"profile"=>"weeeeee", "account_id"=>"1"}, "commit"=>"Post"}
|
368
|
+
|
369
|
+
Unpermitted parameters: :utf8, :authenticity_token, :account_content, :commit
|
370
|
+
|
371
|
+
(0.1ms) begin transaction
|
372
|
+
|
373
|
+
(0.1ms) rollback transaction
|
374
|
+
|
375
|
+
(0.0ms) begin transaction
|
376
|
+
|
377
|
+
(0.0ms) rollback transaction
|
378
|
+
|
379
|
+
Rendering account_contents/create.html.erb within layouts/application
|
380
|
+
|
381
|
+
Rendered account_contents/create.html.erb within layouts/application (0.3ms)
|
382
|
+
|
383
|
+
Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? ORDER BY "accounts"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
|
384
|
+
|
385
|
+
Rendered layouts/_header.html.erb (3.3ms)
|
386
|
+
|
387
|
+
Rendered layouts/_btmnavbar.html.erb (0.8ms)
|
388
|
+
|
389
|
+
Completed 200 OK in 366ms (Views: 38.0ms | ActiveRecord: 0.4ms)
|
390
|
+
|
391
|
+
```
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -292,7 +292,7 @@
|
|
292
292
|
|
293
293
|
<%= f.text_area :profile, placeholder: "Compose new micropost..." %>
|
294
294
|
|
295
|
-
<%= hidden_field
|
295
|
+
<%= f.hidden_field :account_id, value: current_account.id %>
|
296
296
|
|
297
297
|
</div>
|
298
298
|
|
@@ -320,17 +320,15 @@
|
|
320
320
|
|
321
321
|
```ここに言語を入力
|
322
322
|
|
323
|
-
Pr
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
Unpermitted parameters: :utf8, :authenticity_token, :account_content, :account_id, :commit
|
323
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TA6zJfufoTw2bqDQFVTaJMAgPK5ijTJR+5lz7RuYexjbLUQ1L2sOhtfhpCl70SjG2peRnUvRCu5g5M47TwBk7Q==", "account_content"=>{"profile"=>"YESSSS", "account_id"=>"1"}, "commit"=>"Post"}
|
324
|
+
|
325
|
+
Unpermitted parameters: :utf8, :authenticity_token, :account_content, :commit
|
328
326
|
|
329
327
|
(0.1ms) begin transaction
|
330
328
|
|
331
329
|
(0.0ms) rollback transaction
|
332
330
|
|
333
|
-
(0.
|
331
|
+
(0.0ms) begin transaction
|
334
332
|
|
335
333
|
(0.0ms) rollback transaction
|
336
334
|
|
@@ -344,6 +342,6 @@
|
|
344
342
|
|
345
343
|
Rendered layouts/_btmnavbar.html.erb (0.8ms)
|
346
344
|
|
347
|
-
Completed 200 OK in 5
|
345
|
+
Completed 200 OK in 45ms (Views: 39.4ms | ActiveRecord: 0.4ms)
|
348
|
-
|
346
|
+
|
349
|
-
```
|
347
|
+
```
|