Class: Merb::Dispatcher::DefaultException

Inherits:
Controller show all
Defined in:
lib/merb-core/dispatch/default_exception/default_exception.rb

Constant Summary

Constants included from ResponderMixin

ResponderMixin::MIMES, ResponderMixin::TYPES

Instance Attribute Summary

Attributes inherited from Controller

#headers, #request

Instance Method Summary collapse

Methods inherited from Controller

#_absolute_template_location, #_dispatch, _filter_params, callable_actions, hide_action, inherited, #initialize, #params, #rack_response, show_action, #status, #status=, subclasses_list

Methods included from ConditionalGetMixin

#etag, #etag=, #etag_matches?, #last_modified, #last_modified=, #not_modified?, #request_fresh?

Methods included from AuthenticationMixin

#basic_authentication

Methods included from ControllerMixin

#delete_cookie, #escape_xml, #message, #nginx_send_file, #redirect, #render_chunked, #render_deferred, #render_then_call, #run_later, #send_chunk, #send_data, #send_file, #set_cookie, #stream_file

Methods included from ResponderMixin

#_perform_content_negotiation, #_provided_formats, #content_type, #content_type=, #does_not_provide, included, #only_provides, #provides

Constructor Details

This class inherits a constructor from Merb::Controller

Instance Method Details

#_template_location(context, type = nil, controller = controller_name) ⇒ Object



82
83
84
# File 'lib/merb-core/dispatch/default_exception/default_exception.rb', line 82

def _template_location(context, type = nil, controller = controller_name)
  "#{context}.#{type}"
end

#indexObject



86
87
88
89
90
# File 'lib/merb-core/dispatch/default_exception/default_exception.rb', line 86

def index
  @exceptions = request.exceptions
  @show_details = Merb::Config[:exception_details]
  render :format => :html
end