Après mise à jour d'événement, on redirige l'utilisateur vers l'agenda

This commit is contained in:
echarp 2014-07-01 21:10:13 +02:00
parent 8e80e7e9ff
commit eed1102469
1 changed files with 1 additions and 1 deletions

View File

@ -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' }