Class: Tasks::Exports::NomenclatureController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::Exports::NomenclatureController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/exports/nomenclature_controller.rb
Instance Method Summary collapse
Methods included from TaskControllerConfiguration
Instance Method Details
#basic ⇒ Object
GET
5 6 |
# File 'app/controllers/tasks/exports/nomenclature_controller.rb', line 5 def basic end |
#download_basic ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/tasks/exports/nomenclature_controller.rb', line 8 def download_basic redirect_to export_basic_nomenclature_task_path, notice: 'Nothing selected' and return unless !params[:taxon_name_id].blank? @taxon_name = TaxonName.where(project_id: sessions_current_project_id).find(params.require(:taxon_name_id)) download = ::Export::BasicNomenclature.download_async(@taxon_name, request.url) redirect_to file_download_path(download) end |