Class: Plezi::Base::Err404Ctrl

Inherits:
Object
  • Object
show all
Includes:
Controller
Defined in:
lib/plezi/router/errors.rb

Instance Attribute Summary

Attributes included from Controller

#_pl__client, #cookies, #params, #request, #response

Instance Method Summary collapse

Methods included from Controller

#_pl_ad_httpreview, #_pl_ad_map, #_pl_ad_review, #_pl_respond, #_pl_ws_map, #close, #extend, included, #keys, #on_close, #on_drained, #on_message, #on_open, #on_shutdown, #open?, #pending, #pre_connect, #publish, #redirect_to, #render, #send_data, #send_file, #subscribe, #to_s, #url_for, #values, #write

Instance Method Details

#indexObject



4
5
6
7
# File 'lib/plezi/router/errors.rb', line 4

def index
   response.status = 404
   render('404') || 'Error 404, not found.'
end

#requested_methodObject



9
10
11
# File 'lib/plezi/router/errors.rb', line 9

def requested_method
   :index
end