Class: Orange::NotFound

Inherits:
Resource show all
Defined in:
lib/orange-core/resources/not_found.rb

Instance Method Summary collapse

Methods inherited from Resource

#afterLoad, call_me, #do_view, #find_extras, #init, #initialize, #nests, #options, #orange, #orange_name, #routable, #set_orange, set_orange, #view, #view_opts, #viewable, viewable

Methods included from ClassInheritableAttributes

#cattr_accessor, #cattr_reader, #cattr_writer, eval_in_accessor_module, fetch_value, store_value

Constructor Details

This class inherits a constructor from Orange::Resource

Instance Method Details

#route(packet) ⇒ Object



5
6
7
8
# File 'lib/orange-core/resources/not_found.rb', line 5

def route(packet)
  packet[:content] = orange[:parser].haml("404.haml", packet, :resource => self)
  packet[:status] = 404
end