Class: Artk::ResourcesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @results = return_resource_results.collect { |fa| fa.pid_and_title }
  return_response
end

#showObject



9
10
11
12
13
14
15
16
# File 'app/controllers/artk/resources_controller.rb', line 9

def show
  @results = Resource.find_by_ead_id(params[:id])
  if @results.nil?
    redirect_to :status => 404 
  else
    return_response
  end
end