質問編集履歴
1
あ
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
【rails Ajax】コメント機能で、renderが上手くきかず「Template is missing」エラーになる。
|
1
|
+
あ【rails Ajax】コメント機能で、renderが上手くきかず「Template is missing」エラーになる。
|
body
CHANGED
@@ -8,13 +8,6 @@
|
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
|
11
|
-
```
|
12
|
-
Template is missing
|
13
|
-
Missing template comments/index, application/index with {:locale=>[:ja], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in: * "/Users/takumi/soup/app/views" * "/Users/takumi/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/kaminari-core-1.2.0/app/views" * "/Users/takumi/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/devise-4.7.1/app/views"
|
14
|
-
```
|
15
|
-
[エラー画像](https://i.gyazo.com/b22575cc086ff935e93de79064e6b988.png)
|
16
|
-
ターミナルでも同じような記述がありました。
|
17
|
-
|
18
11
|
コンソールエラーは「comments:1 POST http://localhost:3000/cafeterias/3/comments 500 (Internal Server Error)」です。
|
19
12
|
|
20
13
|
### 該当のソースコード
|