refactor messagerie_instructeur_avis_url

This commit is contained in:
Christophe Robillard 2020-04-20 15:05:36 +02:00
parent 83fba55b29
commit b0cfb2c02a
3 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ module Instructeurs
if @commentaire.save
flash.notice = "Message envoyé"
redirect_to messagerie_instructeur_avis_path(avis)
redirect_to messagerie_instructeur_avis_path(avis.procedure, avis)
else
flash.alert = @commentaire.errors.full_messages
render :messagerie