Après mise à jour d'événement, on redirige l'utilisateur vers l'agenda
This commit is contained in:
parent
8e80e7e9ff
commit
eed1102469
@ -80,7 +80,7 @@ class EventsController < ApplicationController
|
|||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @event.update event_params
|
if @event.update event_params
|
||||||
format.html { redirect_to @event, notice: t('.ok') }
|
format.html { redirect_to :root_url, notice: t('.ok') }
|
||||||
format.json { head :no_content }
|
format.json { head :no_content }
|
||||||
else
|
else
|
||||||
format.html { render action: 'edit' }
|
format.html { render action: 'edit' }
|
||||||
|
Loading…
Reference in New Issue
Block a user