Class: ErrorsController

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

Instance Method Summary collapse

Instance Method Details

#exceptionObject


11
# File 'app/controllers/errors_controller.rb', line 11

def exception; end

#not_foundObject


4
5
6
7
8
9
# File 'app/controllers/errors_controller.rb', line 4

def not_found
  respond_to do |format|
    format.html { render 'errors/not_found', status: 404 }
    format.any { render text: 'not found', status: 404 }
  end
end