fix images

This commit is contained in:
2022-12-12 18:35:18 +02:00
parent 7966437324
commit e6effde4ff
5 changed files with 11 additions and 8 deletions

View File

@ -11,9 +11,9 @@ module Merged
end
def set_image
@card.content["image"] = params[:image]
@card.image = params[:image]
@card.save
redirect_to section_cards_url(@card.section.id)
redirect_to section_cards_url(@card.section.id) , notice: "Image selected: #{@card.image}"
end
def move

View File

@ -37,9 +37,9 @@ module Merged
end
def set_image
@section.content["image"] = params[:image]
@section.image = params[:image]
@section.save
redirect_to section_url(@section.id)
redirect_to section_url(@section.id) , notice: "Image selected: #{@section.image}"
end
def set_template