Module: CMS::Rescue

Extended by:
ActiveSupport::Concern
Included in:
ApplicationController
Defined in:
app/controllers/concerns/cms/rescue.rb

Instance Method Summary collapse

Instance Method Details

#render_404Object



11
12
13
# File 'app/controllers/concerns/cms/rescue.rb', line 11

def render_404
  render file: 'public/404.html', status: 404, layout: false
end

#render_500(exception = nil) ⇒ Object



15
16
17
18
19
# File 'app/controllers/concerns/cms/rescue.rb', line 15

def render_500(exception = nil)
  cms_logger exception
  self.response_body = nil # make sure that there is no DoubleRenderError
  render file: 'public/500.html', status: 500, layout: false
end