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