more messages

This commit is contained in:
Torsten 2022-12-07 14:14:18 +02:00
parent 5fdaa6425b
commit b606caf2b8
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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