Class: ExportsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/exports_controller.rb

Overview

The exports controller handles the generation of exported files, such as CSV files used to drive robots.

Instance Method Summary collapse

Instance Method Details

#showObject



12
13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/exports_controller.rb', line 12

def show
  @page = params.fetch(:page, 0).to_i
  @workflow = export.workflow
  @ancestor_plate = locate_ancestor_plate
  @ancestor_tubes = locate_ancestor_tubes
  @ancestor_plate_list = locate_ancestor_plate_list

  set_filename if export.filename

  render export.csv, locals: { test: 'this' }
end