Class: Abrasf::Desif::TaxCodesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/abrasf/desif/tax_codes_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /desif/tax_codes



9
10
11
12
13
14
15
16
17
# File 'app/controllers/abrasf/desif/tax_codes_controller.rb', line 9

def index
  respond_to do |format|
    format.html
    format.csv do
      filename = "attachment; filename=\"#{t '.filename'}\""
      headers['Content-Disposition'] = filename
    end
  end
end