Sha256: ad9f8e11b5624ece19195398b07c0af599269dfeeac3bfa8a2ff6d248847b229
Contents?: true
Size: 533 Bytes
Versions: 11
Compression:
Stored size: 533 Bytes
Contents
# encoding: utf-8 module TestServer class ErrorsController < ApplicationController def show handler = ErrorHandler.find(env['action_dispatch.exception']) @error_summary = handler.summary(:html) @error_details = handler.details(:html) respond_to do |format| format.html { render status: handler.status_code } format.json { render json: handler.to_hash, status: handler.status_code } end end private def error_params params.permit(:exception) end end end
Version data entries
11 entries across 11 versions & 1 rubygems