mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 13:38:24 -04:00
Pass the ID from link to likesdestroy
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
- else
|
||||
- like = post.likes.find_by(member: current_member)
|
||||
- if like && can?(:destroy, like)
|
||||
= link_to 'Unlike', like_path(like, format: :json),
|
||||
= link_to 'Unlike', like_path(id: like.id, format: :json),
|
||||
method: :delete, remote: true, class: 'post-like'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user