Class: ExceptionHandler::ExceptionController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ExceptionHandler::ExceptionController
- Defined in:
- app/controllers/exception_handler/exception_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Show.
Instance Method Details
#show ⇒ Object
Show
18 19 20 21 22 |
# File 'app/controllers/exception_handler/exception_controller.rb', line 18 def show @layout = self.send(:_layout) @message = @status == 404 ? "Sorry, this page is missing" : details[:message] render status: @status end |