removing cards

This commit is contained in:
2022-12-02 22:48:55 +02:00
parent 3d61e44e09
commit 6287373dae
3 changed files with 17 additions and 1 deletions

View File

@ -26,6 +26,13 @@ module Merged
redirect_to section_cards_url(@card.section.id)
end
def remove
section = @card.section
section.remove_card( @card )
section.save
redirect_to section_cards_url(section.id)
end
def update
@card.content.each do |key , value|
next if key == "id"