Class: Batches::RequestsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/batches/requests_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


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

def index
  requests = Batch.find(params[:batch_id]).requests
  respond_to do |format|
    format.xml { render xml: requests.to_xml }
  end
end