Class: WorksWizardUpdateAdditionalController

Inherits:
WorksWizardController show all
Defined in:
app/controllers/works_wizard_update_additional_controller.rb

Overview

Controller to handle the update Additional Metadata step in wizard Mode when editing an work

The wizard flow is shown in the [mermaid diagram here](github.com/pulibrary/pdc_describe/blob/main/docs/wizard_flow.md).

Instance Method Summary collapse

Methods inherited from WorksWizardController

#attachment_select, #attachment_selected, #edit_wizard, #file_location_url, #file_other, #file_upload, #file_uploaded, #files_param, #readme_select, #readme_uploaded, #readme_uploaded_payload, #review, #update_wizard, #upload_files, #validate

Methods inherited from ApplicationController

#new_session_path

Instance Method Details

#update_additionalObject

get /works/1/update-additional



14
15
16
# File 'app/controllers/works_wizard_update_additional_controller.rb', line 14

def update_additional
  prepare_decorators_for_work_form(@work)
end

#update_additional_saveObject

PATCH /works/1/update-additional



19
20
21
# File 'app/controllers/works_wizard_update_additional_controller.rb', line 19

def update_additional_save
  edit_helper(:update_additional, work_readme_select_path(@work))
end