app/controllers/exceptions_controller.rb
# Catches & renders a generic application error
Catches & renders a generic application error
Catches & renders a generic application error
def error_page
    @status_code = params[:error]
    log_error( @status_code, true ) if @status_code
    render 'error_page', status: @status_code, layout: true
  end
def error_page @status_code = params [ :error ] log_error ( @status_code , true ) if @status_code render 'error_page' , status : @status_code , layout : true end
Catches & renders a generic application error
Catches & renders a generic application error