Class: Tasks::ObservationMatrices::ImageMatrixController

Inherits:
ApplicationController
  • Object
show all
Includes:
DataControllerConfiguration::ProjectDataControllerConfiguration, TaskControllerConfiguration
Defined in:
app/controllers/tasks/observation_matrices/image_matrix_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/image_matrix



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

def index
end

#keyObject

GET /tasks/observation_matrices/image_matrix/37/key



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

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

#key_paramsObject (protected)

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

:otu_filter, :identified_to_rank]


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

def key_params
  params.permit(
      :observation_matrix_id,
      :language_id,
      :row_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