Class: Tasks::Otus::FilterController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/otus/filter_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#downloadObject



4
5
6
7
8
9
10
11
# File 'app/controllers/tasks/otus/filter_controller.rb', line 4

def download
  @otus = ::Queries::Otu::Filter.new(params).all

  # See helpers/otus_helper.rb
  send_data helpers.ranked_otu_table(@otus),
    type: 'text',
    filename: "otus_#{DateTime.now}.tsv"
end