more messages
This commit is contained in:
parent
5fdaa6425b
commit
b606caf2b8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user