Class: BiologicalAssociationIndicesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- BiologicalAssociationIndicesController
- Defined in:
- app/controllers/biological_association_indices_controller.rb
Constant Summary
Constants included from ProjectsHelper
ProjectsHelper::CLASSIFIER, ProjectsHelper::CLASSIFIER_ANNOTATION
Instance Method Summary collapse
-
#download ⇒ Object
GET /biological_association_indices/download.
Methods included from DataControllerConfiguration::ProjectDataControllerConfiguration
Methods inherited from ApplicationController
Methods included from RedirectHelper
Methods included from RequestType
Methods included from LogRecent
Methods included from Cookies
#digest_cookie, #digested_cookie_exists?
Methods included from Whitelist
Methods included from ProjectsHelper
#cumulative_gb_per_year, #cumulative_projects_created_per_year, #document_cumulative_gb_per_year, #document_gb_per_year, #gb_per_year, #image_cumulative_gb_per_year, #image_gb_per_year, #invalid_object, #project_classification, #project_initials, #project_link, #project_login_link, #project_matches, #project_tag, #projects_list, #projects_search_form, #sound_cumulative_gb_per_year, #sound_gb_per_year, #taxonworks_classification, #week_in_review_graphs
Methods included from Api::Intercept
Methods included from TokenAuthentication
#intercept_project, #intercept_user, #intercept_user_or_project, #project_token_authenticate, #token_authenticate
Instance Method Details
#download ⇒ Object
GET /biological_association_indices/download
5 6 7 8 9 |
# File 'app/controllers/biological_association_indices_controller.rb', line 5 def download send_data Export::CSV.generate_csv( BiologicalAssociationIndex.where(project_id: sessions_current_project_id)), type: 'text', filename: "biological_association_indices_#{DateTime.now}.tsv" end |