teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

ファイル名の追加

2020/02/17 14:29

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -7,7 +7,7 @@
7
7
  ### 発生している問題・エラーメッセージ
8
8
 
9
9
  ```
10
- ActionView::MissingTemplate in TopPage#index
10
+ ActionView::MissingTemplate in halls#index
11
11
 
12
12
  Missing partial likes/like with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in:
13
13
  * "/Users/yuuka/projects/wedding-app/app/views"

1

ファイル名の追加

2020/02/17 14:29

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -9,13 +9,15 @@
9
9
  ```
10
10
  ActionView::MissingTemplate in TopPage#index
11
11
 
12
- Missing partial top_page/_cost with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in:
12
+ Missing partial likes/like with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in:
13
13
  * "/Users/yuuka/projects/wedding-app/app/views"
14
14
  ```
15
15
 
16
16
  ### 該当のソースコード
17
17
 
18
18
  ```haml
19
+ #views/halls/index.html.haml
20
+
19
21
  .item-button-container
20
22
  .item-button-container__left
21
23
  = render partial: "likes/like", locals: { hall: @hall, halls: @halls, likes: @likes, like: @like}
@@ -23,6 +25,8 @@
23
25
  ```
24
26
 
25
27
  ```Ruby
28
+ # like.rb
29
+
26
30
  #ユーザーがサインインしているかどうか
27
31
  - if user_signed_in?
28
32
  #ログインしているユーザーがすでに「いいね」しているかどうか