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

#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, #broadcast, #conn_id, #extend, #id, included, #multicast, #on_message, #pre_connect, #redirect_to, #render, #send_data, #send_file, #unicast, #url_for

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