Class: Picombo::Controllers::Error_404

Inherits:
Object
  • Object
show all
Defined in:
lib/controllers/error/404.rb

Overview

Controller class for handling 404 events

To override, re-define this in your application’s controller directory

Instance Method Summary collapse

Instance Method Details

#run_error(uri) ⇒ Object

Displays a 404 message for the current uri



8
9
10
11
12
# File 'lib/controllers/error/404.rb', line 8

def run_error(uri)
	body = Picombo::Stache::Error_404.new
	body.uri = uri
	return [404, {'Content-Type' => 'text/html'}, body.output]
end