rails 1つの詳細ページに全てのコメントが表示される 初心者なので凡ミスかもしれませんがご教授ください
.id) @likes_count = Like.where(post_id: @post @post_detail = Post.fin ...
91 search resultsShowing 1~20 results
.id) @likes_count = Like.where(post_id: @post @post_detail = Post.fin ...
partial: 'likes/like', locals: {post: @post}) @post}) %>"); destr ...
のhref属性は"likes_user_path"ではない? ④ユーザー詳細のDeleteボタンをクリックしても、 の画面が表示され、削除できない。(お気に ...
現在のコード route.rb 省略 get "likes/:post_id/indexcreate" "likes/:post_id/indexcreate" => "
d: undefined local variable or method `likes_count' for #<ActionView::Base: ...
Started POST "/flogs/3/likes" for 119.230.114.46 at 2022-05-29 20:52:22 +0000 Cannot rend
現在のコード route.rb 省略 get "likes/:post_id/indexcreate" eate" => "likes#indexc ...
= current_user.likes.new(post_id: @post.id) @like.save @likes =
_signed_in? %> 2: <% if current_user.likes.find_by(performance_id: @p
get "likes/:post_id/indexcreate" => "likes#indexcreate" get "likes ...
= current_user.likes.create(recipe_id: params[:recipe_id]) redirect_back(fallback_loca ...
nk_to("/likes/#{post.id}/indexcreate" こういったものではなく、 <%= link_to book_favorit
s/likes_controller.rb:20:in rb:20:in `set_controller'
= current_user.likes.new(tip_id: params[:tip_id]) @tip = Tip.find_by(id: params[:tip_i ...
comment_likes_controller.rb to define define it raise LoadEr ...
=>"likes"}, missing required keys: [:id]): if current_user.b
ass="row" style="margin: auto;"> <div class="col-3 p-5"> <img src="{{ $user ...
'likes/like', locals: {post: @post}) %>"); app/views/likes/create ...
nk_to("/likes/#{@recipe.id}/destroy", {method: "recipe"}) do %> <span cl ...
s/likes_controller.rb:20:in `set_like' CACHE Way Load (0.0ms)
91 search resultsShowing 1~20 results
Qiita is a knowledge sharing service for engineers.