generation d'un fichier pdf bien nommé

La route ne contient pas '.pdf' dans l'url, mais le controller génère un fichier pdf du nom de la procédure et lance le téléchargement immédiatement
This commit is contained in:
clemkeirua 2020-03-17 14:51:27 +01:00
parent 76488ec758
commit debc6628d8
2 changed files with 10 additions and 6 deletions

View file

@ -42,9 +42,9 @@
= link_to 'Commencer un nouveau dossier', url_for_new_dossier(@procedure), class: ['button large expand']
- if feature_enabled_for?(:dossier_pdf_vide, @procedure)
- pdf_link = commencer_dossier_vide_path(path: @procedure.path, format: :pdf)
- pdf_link = commencer_dossier_vide_path(path: @procedure.path)
- if @procedure.brouillon?
- pdf_link = commencer_dossier_vide_test_path(path: @procedure.path, format: :pdf)
- pdf_link = commencer_dossier_vide_test_path(path: @procedure.path)
%hr
%p
Vous souhaitez effectuer une demande par papier ? Vous pouvez télécharger un dossier vide au format PDF,