fixing demo errors, rename template to style

This commit is contained in:
2023-01-03 19:37:31 +02:00
parent 693d121c0f
commit 9bcd43215b
11 changed files with 14 additions and 16 deletions

View File

@ -45,7 +45,7 @@ module Merged
@card.option_definitions.each do |option|
@card.set_option(option.name, options[option.name])
end if options
@card.save(current_member.email)
@card.edit_save(current_member.email)
redirect_to section_cards_url(@card.section.id) , notice: "Updated #{@card.header}"
end

View File

@ -53,7 +53,7 @@ module Merged
end
def destroy
@page.delete()
@page.delete_save!
redirect_to pages_url, notice: "Page #{@page.name} was removed."
end

View File

@ -27,7 +27,7 @@ module Merged
end
def destroy
@section.delete
@section.delete_save!
redirect_to page_sections_url(@section.page.id) , notice: "Section #{@section.header} removed"
end