This commit is contained in:
Andreas Nedbal 2022-01-24 22:17:53 +01:00 committed by Andreas Nedbal
parent 594eaedce2
commit c08545fe7c
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ class AnnouncementController < ApplicationController
@announcement = Announcement.find(params[:id])
@announcement.update(announcement_params)
if @announcement.save
flash[:success] = T(".success")
flash[:success] = t(".success")
redirect_to announcement_index_path
else
flash[:error] = T(".error")
flash[:error] = t(".error")
render "announcement/edit"
end
end