Class: ErrorPagesEngine::ErrorsController

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

Instance Method Summary collapse

Instance Method Details

#bad_requestObject



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

def bad_request
  render :status => 422
end

#not_foundObject



2
3
4
# File 'app/controllers/error_pages_engine/errors_controller.rb', line 2

def not_found
  render :status => 404
end

#server_errorObject



6
7
8
# File 'app/controllers/error_pages_engine/errors_controller.rb', line 6

def server_error
  render :status => 500
end