Class: Plezi::Base::Err500Ctrl

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


16
17
18
19
20
21
# File 'lib/plezi/router/errors.rb', line 16

def index
  response.status = 500
  render('500') || 'Internal Error 500.'
rescue
  'Internal Error 500.'
end

#requested_methodObject


23
24
25
# File 'lib/plezi/router/errors.rb', line 23

def requested_method
  :index
end