diff --git a/app/controllers/announcement_controller.rb b/app/controllers/announcement_controller.rb index c8a5b7bd..aaeef949 100644 --- a/app/controllers/announcement_controller.rb +++ b/app/controllers/announcement_controller.rb @@ -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