Class: Artk::ComponentsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/artk/components_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
# File 'app/controllers/artk/components_controller.rb', line 4

def index
  @results = Resource.find_by_ead_id(params[:resource_id]).all_series.collect { |s| s.pid_and_title }
  return_response
end

#showObject



9
10
11
12
# File 'app/controllers/artk/components_controller.rb', line 9

def show
  @results = Resource.find_by_ead_id(params[:resource_id]).component(params[:id])
  return_response
end