Class: Samples::StudiesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/samples/studies_controller.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#indexObject


7
8
9
10
# File 'app/controllers/samples/studies_controller.rb', line 7

def index
  studies = Sample.find(params[:sample_id]).studies
  respond_to { |format| format.xml { render xml: studies.to_xml } }
end