Class: Scribo::ContentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Scribo::ContentsController
- Defined in:
- app/controllers/scribo/contents_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/scribo/contents_controller.rb', line 10 def show render scribo: request rescue StandardError => e Scribo.config.logger.error '-' * 80 Scribo.config.logger.error '=> Content rendering errors: ' + e. Scribo.config.logger.error '=> ' + e.backtrace.map(&:to_s).join("\n") Scribo.config.logger.error '-' * 80 render body: e., status: 500 end |