After deleting a brouillon, stay on the brouillon tab

Instead of redirecting on another tab
This commit is contained in:
gregoirenovel 2017-10-19 11:02:01 +02:00
parent 13aaf5c38a
commit 7be86796c1

View file

@ -161,7 +161,7 @@ class Users::DossiersController < UsersController
dossier.destroy dossier.destroy
flash.notice = 'Brouillon supprimé' flash.notice = 'Brouillon supprimé'
end end
redirect_to url_for users_dossiers_path redirect_to url_for users_dossiers_path(liste: 'brouillon')
end end
def text_summary def text_summary