Class: Samples::StudiesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject


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

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