Class: Tasks::ObservationMatrices::ViewController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::ObservationMatrices::ViewController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/observation_matrices/view_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET.
Methods included from TaskControllerConfiguration
Instance Method Details
#index ⇒ Object
GET
5 6 7 8 9 |
# File 'app/controllers/tasks/observation_matrices/view_controller.rb', line 5 def index q = ObservationMatrix.where(project_id: sessions_current_project_id) @observation_matrix = params[:observation_matrix_id] ? q.find(params[:observation_matrix_id]) : q.first redirect_to new_observation_matrix_path and return if @observation_matrix.nil? end |