From b606caf2b876bdf41b26fa26482cfc377e376321 Mon Sep 17 00:00:00 2001 From: Torsten Date: Wed, 7 Dec 2022 14:14:18 +0200 Subject: [PATCH] more messages --- app/controllers/merged/cards_controller.rb | 6 +++--- app/controllers/merged/sections_controller.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/merged/cards_controller.rb b/app/controllers/merged/cards_controller.rb index 47b5db5..493e429 100644 --- a/app/controllers/merged/cards_controller.rb +++ b/app/controllers/merged/cards_controller.rb @@ -23,13 +23,13 @@ module Merged @card.move_down end @card.save - redirect_to section_cards_url(@card.section.id) + redirect_to section_cards_url(@card.section.id),notice: "Card moved" end def new @section = Section.find(params[:section_id]) new_card = @section.new_card - redirect_to section_cards_url(@section.id) + redirect_to section_cards_url(@section.id) , notice: "Card created" end def destroy @@ -50,7 +50,7 @@ module Merged @card.set_option(option.name, options[option.name]) end if options @card.save - redirect_to section_cards_url(@card.section.id) + redirect_to section_cards_url(@card.section.id) , notice: "Update ok" end private diff --git a/app/controllers/merged/sections_controller.rb b/app/controllers/merged/sections_controller.rb index e117a76..cd8c8ae 100644 --- a/app/controllers/merged/sections_controller.rb +++ b/app/controllers/merged/sections_controller.rb @@ -23,9 +23,9 @@ module Merged new_section = page.new_section(template) page.save if(template.blank?) # new - redirect_to section_select_template_url(new_section.id) + redirect_to section_select_template_url(new_section.id), notice: "New section created" else # copy - redirect_to section_url(new_section.id) + redirect_to section_url(new_section.id), notice: "Section copied" end end @@ -79,7 +79,7 @@ module Merged @section.set_option(option.name, options[option.name]) end if options @section.save - redirect_to :section + redirect_to :section , notice: "Update ok" end private