replace instructeur_avis_index url by instructeur_all_avis url
This commit is contained in:
parent
dcb9afaf25
commit
72d27ffdb2
8 changed files with 9 additions and 8 deletions
|
@ -99,7 +99,7 @@ module Instructeurs
|
|||
sign_in(user)
|
||||
|
||||
Avis.link_avis_to_instructeur(user.instructeur)
|
||||
redirect_to url_for(instructeur_avis_index_path)
|
||||
redirect_to url_for(instructeur_all_avis_path)
|
||||
else
|
||||
flash[:alert] = user.errors.full_messages
|
||||
redirect_to url_for(sign_up_instructeur_avis_path(params[:id], email))
|
||||
|
|
|
@ -284,7 +284,7 @@ module Instructeurs
|
|||
|
||||
def redirect_to_avis_if_needed
|
||||
if current_instructeur.procedures.count == 0 && current_instructeur.avis.count > 0
|
||||
redirect_to instructeur_avis_index_path
|
||||
redirect_to instructeur_all_avis_path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue