Class: RackStep::NotFoundController
- Inherits:
-
Controller
- Object
- Controller
- RackStep::NotFoundController
- Defined in:
- lib/controller.rb
Overview
This is the default controller that will handle the “page not found” (404). The user may overwrite this by creating new route to ‘notfound’.
Instance Attribute Summary
Attributes inherited from Controller
#request, #response, #settings
Instance Method Summary collapse
Methods inherited from Controller
Constructor Details
This class inherits a constructor from RackStep::Controller
Instance Method Details
#process_request ⇒ Object
56 57 58 59 60 |
# File 'lib/controller.rb', line 56 def process_request @response.body = '404 - Page not found' @response.content_type = 'text/plain' @response.status = 404 end |