Class: RackStep::NotFoundController

Inherits:
Controller show all
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

Instance Method Summary collapse

Methods inherited from Controller

#after, #before, #initialize

Constructor Details

This class inherits a constructor from RackStep::Controller

Instance Method Details

#process_requestObject



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