Class: Tasks::ObservationMatrices::InteractiveKeyController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::ObservationMatrices::InteractiveKeyController
- Includes:
- DataControllerConfiguration::ProjectDataControllerConfiguration, TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/observation_matrices/interactive_key_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /tasks/observation_matrices/interactive_key.
-
#key ⇒ Object
GET /tasks/observation_matrices/interactive_key/37/key.
-
#key_params ⇒ Object
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].
Methods included from DataControllerConfiguration::ProjectDataControllerConfiguration
Methods included from TaskControllerConfiguration
Instance Method Details
#index ⇒ Object
GET /tasks/observation_matrices/interactive_key
6 7 |
# File 'app/controllers/tasks/observation_matrices/interactive_key_controller.rb', line 6 def index end |
#key ⇒ Object
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_params ⇒ Object (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 |