This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/app/controllers/exceptions.rb

18 lines
415 B
Ruby

class Exceptions < Application
include MerbExceptions::ControllerExtensions
# handle NotFound exceptions (404)
def not_found
@page_title = 'Error 404'
@secondary_title = 'Document Not Found'
render
end
# handle NotAcceptable exceptions (406)
def not_acceptable
@page_title = 'Error 500'
@secondary_title = 'Application Exception'
render_and_notify :format => :html
end
end