app/controllers/hyrax/etds_controller.rb
# Adds Hyrax behaviors to the controller.
Adds Hyrax behaviors to the controller.
Adds Hyrax behaviors to the controller .
def update_with_response_for_form
      if actor.update(actor_environment)
        path = main_app.hyrax_etd_path(curation_concern)
        render json: { redirectPath: path }, status: :ok
      else
        render json: { errors: 'ERROR: Unable to save the ETD' }, status: 422
      end
    end
def update_with_response_for_form if actor . update ( actor_environment ) path = main_app . hyrax_etd_path ( curation_concern ) render json : { redirectPath : path } , status : :ok else render json : { errors : 'ERROR: Unable to save the ETD' } , status : 422 end end
Adds Hyrax behaviors to the controller.
Adds Hyrax behaviors to the controller .
# TODO: render json: { errors: curation_concern.errors.messages }, status: 422