Method: Rack::Blogengine::ApplicationRouter.errorpage
- Defined in:
- lib/rack/blogengine/application_router.rb
.errorpage(request, documents) ⇒ Object
Returns the errorpage
39 40 41 42 43 44 |
# File 'lib/rack/blogengine/application_router.rb', line 39 def errorpage(request, documents) header = { 'Content-Type' => 'text/html; charset=UTF-8' } response = Rack::Response.new('Page not found', 404, header) { 'path' => request.path, 'response' => response } end |