Class: Tasks::ObservationMatrices::InteractiveKeyController

Inherits:
ApplicationController
  • Object
show all
Includes:
DataControllerConfiguration::ProjectDataControllerConfiguration, TaskControllerConfiguration
Defined in:
app/controllers/tasks/observation_matrices/interactive_key_controller.rb

Instance Method Summary collapse

Methods included from DataControllerConfiguration::ProjectDataControllerConfiguration

#annotator_params

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject

GET /tasks/observation_matrices/interactive_key



6
7
# File 'app/controllers/tasks/observation_matrices/interactive_key_controller.rb', line 6

def index
end

#keyObject

GET /tasks/observation_matrices/interactive_key/37/key



10
11
12
# File 'app/controllers/tasks/observation_matrices/interactive_key_controller.rb', line 10

def key
  @key = InteractiveKey.new(key_params)
end

#key_paramsObject (protected)

params[:observation_matrix_id, :project_id, :observation_matrix, :language_id, :keyword_ids, :row_filter, :otu_filter,

:sorting, :eliminate_unknown, :error_tolerance, :identified_to_rank, :selected_descriptors]


18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/controllers/tasks/observation_matrices/interactive_key_controller.rb', line 18

def key_params
  params.permit(
    :observation_matrix_id,
    :language_id,
    :row_filter,
    :otu_filter,
    :sorting,
    :eliminate_unknown,
    :error_tolerance,
    :identified_to_rank,
    :selected_descriptors,
    keyword_ids: [] # arrays must be at the end
  ).to_h.symbolize_keys.merge(project_id: sessions_current_project_id)
end