Class: Comable::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Comable::ApplicationController
- Includes:
- ApplicationHelper
- Defined in:
- app/controllers/comable/application_controller.rb
Instance Method Summary collapse
Instance Method Details
#render_404(exception = nil) ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/comable/application_controller.rb', line 8 def render_404(exception = nil) if exception logger.info "Rendering 404 with exception: #{exception.}" end render template: "errors/error_404", status: 404, layout: 'comable/error' end |
#render_500(exception = nil) ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/comable/application_controller.rb', line 15 def render_500(exception = nil) if exception logger.info "Rendering 500 with exception: #{exception.}" end render template: "errors/error_500", status: 500, layout: 'comable/application' def show; raise env["action_dispatch.exception"]; end end |
#show ⇒ Object
20 |
# File 'app/controllers/comable/application_controller.rb', line 20 def show; raise env["action_dispatch.exception"]; end |