From eed11024698548ec2137ee112a2a56f2aae6e9f1 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 1 Jul 2014 21:10:13 +0200 Subject: [PATCH] =?UTF-8?q?Apr=C3=A8s=20mise=20=C3=A0=20jour=20d'=C3=A9v?= =?UTF-8?q?=C3=A9nement,=20on=20redirige=20l'utilisateur=20vers=20l'agenda?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/events_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index 739e8ea2..93903095 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -80,7 +80,7 @@ class EventsController < ApplicationController respond_to do |format| 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 } else format.html { render action: 'edit' }