Class: ThinkFeelDoEngine::Coach::ParticipantThoughtsVisualizationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- ThinkFeelDoEngine::Coach::ParticipantThoughtsVisualizationsController
- Defined in:
- app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb
Overview
Present Participant Thoughts Visualization to the Coach.
Constant Summary
Constants inherited from ApplicationController
ApplicationController::CSRF_COOKIE_NAME, ApplicationController::CSRF_HEADER_NAME, ApplicationController::INACTIVE_MESSAGE, ApplicationController::ROOT_URI
Instance Method Summary collapse
Methods inherited from ApplicationController
#access_denied_resource_path, #after_sign_in_path_for, #after_sign_out_path_for, #raise_not_found!, #render_not_found
Instance Method Details
#record_not_found ⇒ Object
19 20 21 22 23 |
# File 'app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb', line 19 def record_not_found redirect_to main_app.root_path, alert: "The thoughts visualization you were "\ "looking does not exist." end |
#show ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb', line 11 def show @participant = Participant.find(params[:participant_id]) @group = @participant.groups.find(params[:group_id]) thoughts = @participant.thoughts.harmful render "think_feel_do_engine/thoughts/distortion_viz", locals: { thoughts: thoughts, link_to_view: nil } end |