Redirect admins requests to the admin page after the form submission
This commit is contained in:
parent
100974ff9a
commit
83e081426c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class DemandesController < ApplicationController
|
||||||
demande_params[:deadline]
|
demande_params[:deadline]
|
||||||
)
|
)
|
||||||
flash.notice = 'Votre demande a bien été enregistrée, nous vous contacterons rapidement.'
|
flash.notice = 'Votre demande a bien été enregistrée, nous vous contacterons rapidement.'
|
||||||
redirect_to root_path
|
redirect_to administration_path
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue