Class: Artk::ResourcesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Artk::ResourcesController
- Defined in:
- app/controllers/artk/resources_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |