ActionDispatch::DebugExceptions::DebugView Ruby on Rails 5.1.2 Class ActionDispatch::DebugExceptions::DebugView < ActionView::Base actionpack/lib/action_dispatch/middleware/debug_exceptions.rb Methods D debug_hash, debug_headers, debug_params R render Instance Public methods debug_hash(object) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 36 def debug_hash(object) object.to_hash.sort_by { |k, _| k.to_s }.map { |k, v| "#{k}: #{v.inspect rescue $!.message}" }.join("\n") end debug_headers(headers) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 28 def debug_headers(headers) if headers.present? headers.inspect.gsub(",", ",\n") else "None" end end debug_params(params) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 16 def debug_params(params) clean_params = params.clone clean_params.delete("action") clean_params.delete("controller") if clean_params.empty? "None" else PP.pp(clean_params, "", 200) end end render(*) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 40 def render(*) logger = ActionView::Base.logger if logger && logger.respond_to?(:silence) logger.silence { super } else super end end