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
Instance Method Summary collapse
Methods inherited from Controller
Constructor Details
This class inherits a constructor from RackStep::Controller
Instance Method Details
#process_request ⇒ Object
50 51 52 53 54 |
# File 'lib/controller.rb', line 50 def process_request @response.body = '404 - Page not found' @response.content_type = 'text/plain' @response.status = 404 end |