Class: ErrorsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/errors_controller.rb

Overview

Controller to render dynamic error pages

Instance Method Summary collapse

Instance Method Details

#showObject

Show an error page.


10
11
12
13
14
# File 'app/controllers/errors_controller.rb', line 10

def show
  respond_with do |format|
    format.html {render status_code.to_s, status: status_code}
  end
end