Closed hasyrails closed 3 years ago
def done
@schedules = Schedule.where(card_id: @schedule.card_id)
if @schedules.present?
@schedules.each do |schedule|
schedule.done = true
end
end
end
def done
@schedules = Schedule.where(card_id: @schedule.card_id)
if @schedules.present?
@schedules.each do |schedule|
schedule.update(done: 'true')
end
end
end
完了状態の予定をガントチャートに残す場合の表示スタイル