mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-08-07 05:13:37 -04:00
Delete comments when post is deleted
This commit is contained in:
1 parent
b7f3634615
commit
d37e7a148d
4 files changed
+14
-4
No files matched your search
@@ -5,9 +5,9 @@
|
||||
- if can? :edit, @post or can? :destroy, @post
|
||||
.post-actions
|
||||
- if can? :edit, @post
|
||||
= link_to 'Edit', edit_post_path(@post), :class => 'btn'
|
||||
= link_to 'Edit Post', edit_post_path(@post), :class => 'btn'
|
||||
- if can? :destroy, @post
|
||||
= link_to 'Delete', @post, method: :delete, |
|
||||
= link_to 'Delete Post', @post, method: :delete, |
|
||||
data: { confirm: 'Are you sure?' }, :class => 'btn'
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user