Class: Spotlight::Resources::DorHarvesterController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Spotlight::Resources::DorHarvesterController
- Defined in:
- app/controllers/spotlight/resources/dor_harvester_controller.rb
Overview
Resources controller allowing curators to create new exhibit resources from a list of DRUIDs.
Instance Method Summary collapse
- #create ⇒ Object (also: #update)
Instance Method Details
#create ⇒ Object Also known as: update
11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/spotlight/resources/dor_harvester_controller.rb', line 11 def create @resource.update(resource_params) if @resource.save_and_index redirect_to spotlight.admin_exhibit_catalog_path(current_exhibit) else redirect_to spotlight.new_exhibit_resource_path(current_exhibit) end end |