Redirect admins requests to the admin page after the form submission

This commit is contained in:
gregoirenovel 2018-08-27 11:04:50 +02:00
parent 100974ff9a
commit 83e081426c

View file

@ -18,7 +18,7 @@ class DemandesController < ApplicationController
demande_params[:deadline]
)
flash.notice = 'Votre demande a bien été enregistrée, nous vous contacterons rapidement.'
redirect_to root_path
redirect_to administration_path
end
private