App.Documentable.destroy("<%= document_nested_field_wrapper_id(params[:index]) %>", "<%= j render('layouts/flash') %>")
<% new_document_link = link_to t("documents.form.add_new_document"),
                               new_document_path(documentable_type: @document.documentable_type, index: params[:index]),
                               remote: true,
                               id: "new_document_link",
                               class: "button hollow" %>
App.Documentable.updateNewDocumentButton("<%= j new_document_link %>")

App.Documentable.destroy("<%= document_nested_field_wrapper_id(params[:index]) %>", "<%= j render('layouts/flash') %>")
<% new_document_link = link_to t("documents.form.add_new_document"),
                               new_nested_documents_path(documentable_type: @document.documentable_type, index: params[:index]),
                               remote: true,
                               id: "new_document_link",
                               class: "button hollow" %>
App.Documentable.updateNewDocumentButton("<%= j new_document_link %>")

Fix use of an old route
Fix use of an old route
