質問編集履歴

1

エラーメッセージを追加記載しました。

2022/04/02 09:50

投稿

harukome
harukome

スコア26

test CHANGED
File without changes
test CHANGED
@@ -10,10 +10,22 @@
10
10
  - [ ] postの編集画面で新しくcharacterを追加した際に、元いた編集画面にリダイレクトされるようにしたいです。
11
11
 
12
12
  ### 発生している問題・エラーメッセージ
13
+ コマンドプロンプトのエラー画面です。
14
+ ```コマンドプロンプト
15
+ SyntaxError (C:/Users/konku/Desktop/tests/test_life/app/controllers/characters_controller.rb:22: syntax error, unexpected tLABEL, expecting `end'
16
+ ...ck_location: root_path) notice: '編集できました'
17
+ ... ^~~~~~~
18
+ C:/Users/konku/Desktop/tests/test_life/app/controllers/characters_controller.rb:24: syntax error, unexpected ',', expecting `end'
19
+ ...(fallback_location: root_path), notice: '編集できませ...
20
+ ... ^
21
+ ):
13
22
 
14
- ```SyntaxError
15
- syntax error, unexpected tLABEL, expecting `end'
23
+ app/controllers/characters_controller.rb:22: syntax error, unexpected tLABEL, expecting `end'
16
- ...ck_location: root_path) notice: '編集できました'
24
+ app/controllers/characters_controller.rb:24: syntax error, unexpected ',', expecting `end'
25
+ app/controllers/characters_controller.rb:22: syntax error, unexpected tLABEL, expecting `end'
26
+ app/controllers/characters_controller.rb:24: syntax error, unexpected ',', expecting `end'
27
+ app/controllers/characters_controller.rb:22: syntax error, unexpected tLABEL, expecting `end'
28
+ app/controllers/characters_controller.rb:24: syntax error, unexpected ',', expecting `end'
17
29
  ```
18
30
 
19
31
  ### 該当のソースコード