Class: ThinkFeelDoEngine::Participants::PublicSlidesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- ThinkFeelDoEngine::Participants::PublicSlidesController
- Defined in:
- app/controllers/think_feel_do_engine/participants/public_slides_controller.rb
Overview
Enables Participants to access Slideshows directly.
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
#show ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/controllers/think_feel_do_engine/participants/public_slides_controller.rb', line 8 def show @slideshow = BitCore::Slideshow.find(params[:slideshow_id]) @slide = @slideshow..find(params[:id]) rescue ActiveRecord::RecordNotFound => e redirect_to new_participant_session_path, alert: e. end |