Class: Scribo::ContentsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/scribo/contents_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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.message
  Scribo.config.logger.error '=> ' + e.backtrace.map(&:to_s).join("\n")
  Scribo.config.logger.error '-' * 80
  render body: e.message, status: 500
end