質問編集履歴

1

コード名がlikes/create.js.erbコードになっていたのをlikes/html.erbに変更しました。

2022/03/16 01:04

投稿

umakichi
umakichi

スコア44

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,8 @@
34
34
  window.addEventListener('DOMContentLoaded', ('#likes_buttons_<%= @dogrun.id %>').html("<%= j(render partial: 'likes/like', locals: {post: @dogrun}) %>");
35
35
 
36
36
  ```
37
- ```likes/create.js.erbコード
37
+ ```likes/_like.html.erb
38
+
38
39
 
39
40
  <% if user_signed_in? %>
40
41
  <% if current_user.liked_by?(@dogrun.id) %>