Class: Spotlight::Resources::DorHarvesterController

Inherits:
ApplicationController
  • Object
show all
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

Instance Method Details

#createObject 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