Use translation in management/events controller
This commit is contained in:
parent
9848898695
commit
db85a64686
|
@ -22,7 +22,7 @@ module Management
|
||||||
@event = @conference.events.find(params[:id])
|
@event = @conference.events.find(params[:id])
|
||||||
|
|
||||||
if @event.update(event_params)
|
if @event.update(event_params)
|
||||||
flash[:notice] = 'Event was successfully updated.'
|
flash[:notice] = t('.event_successfully_updated')
|
||||||
redirect_to [:management, @conference, @event]
|
redirect_to [:management, @conference, @event]
|
||||||
else
|
else
|
||||||
render action: 'edit'
|
render action: 'edit'
|
||||||
|
|
Loading…
Reference in New Issue