style check

This commit is contained in:
Tanguy PATTE 2015-08-20 16:34:47 +02:00
parent 5cc8c58e05
commit 756f5ffc50

View file

@ -8,9 +8,9 @@ class CommentairesController < ApplicationController
@commentaire.save
if request.referer.include? '/recapitulatif'
redirect_to url_for({controller: :recapitulatif, action: :show, :dossier_id => params['dossier_id']})
redirect_to url_for(controller: :recapitulatif, action: :show, dossier_id: params['dossier_id'])
else
redirect_to url_for({controller: 'admin/dossier', action: :show, :dossier_id => params['dossier_id']})
redirect_to url_for(controller: 'admin/dossier', action: :show, dossier_id: params['dossier_id'])
end
end
end