dossier: fix upload route of piece_justificative in repetitions
In repetitions, `form.index` doesn't make much sense. Turns out we don't really need the index of the champ: we can just use the champ id.
This commit is contained in:
parent
e869e2741e
commit
91260e2867
3 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ Rails.application.routes.draw do
|
|||
get ':position/dossier_link', to: 'dossier_link#show', as: :dossier_link
|
||||
post ':position/carte', to: 'carte#show', as: :carte
|
||||
post ':position/repetition', to: 'repetition#show', as: :repetition
|
||||
put ':position/piece_justificative', to: 'piece_justificative#update', as: :piece_justificative
|
||||
put 'piece_justificative/:champ_id', to: 'piece_justificative#update', as: :piece_justificative
|
||||
end
|
||||
|
||||
get 'attachments/:id', to: 'attachments#show', as: :attachment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue