Sha256: 096e870b2b657daa8ce6255d4cf3917c93737c3c24501fc01e3dbbe9703df374

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

class WhatsWrong::ExceptionsController < ApplicationController
  # TODO: layout

  helper_method :status, :exception, :original_path

  def show
    render "exceptions/#{status}", status: status
  end

  protected
  def status
    @status ||= request.path_info[1..-1].to_i
  end

  def exception
    request.env['action_dispatch.exception']
  end

  def original_path
    request.env["action_dispatch.original_path"]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whats-wrong-0.2.0 app/controllers/whats_wrong/exceptions_controller.rb