Fix typo
This commit is contained in:
parent
594eaedce2
commit
c08545fe7c
|
@ -31,10 +31,10 @@ class AnnouncementController < ApplicationController
|
||||||
@announcement = Announcement.find(params[:id])
|
@announcement = Announcement.find(params[:id])
|
||||||
@announcement.update(announcement_params)
|
@announcement.update(announcement_params)
|
||||||
if @announcement.save
|
if @announcement.save
|
||||||
flash[:success] = T(".success")
|
flash[:success] = t(".success")
|
||||||
redirect_to announcement_index_path
|
redirect_to announcement_index_path
|
||||||
else
|
else
|
||||||
flash[:error] = T(".error")
|
flash[:error] = t(".error")
|
||||||
render "announcement/edit"
|
render "announcement/edit"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue