Sha256: 4d286ec0510b8e629f8112b0d88bdcb9e868a92be865061b0e1f39dac83207d6

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

<html>
	<head>
		<title>Error</title>
		<style>
			.path { 
				padding: 5px;
				font-size: 140%;
				background: #ddd;
			}
			.error { 
				padding: 5px;
				padding-top: 15px;
				font-size: 140%;
				color: #f00;
			}
			.load {
				padding: 5px;
				color: #555;
			}
			h2 {
				padding-left: 5px;
				background: #eee;
			}
		</style>
	</head>
	<body>
		<h1>Error</h1>

		<?r	for error, path in @context.rendering_errors ?>
			<div class="path"><strong>Path:</strong> #{path}</div>
			<div class="error"><strong>#{error.class.name}:</strong> #{N::Markup.expand(error.to_s)}</div>
			<div class="load">Click here to <strong><a href="#{request.uri}">reload</a></strong>.</div>
			<div class="load">Click here to go to the <strong><a href="#{request.referer}">referer</a></strong>.</div>
			<h2><a href="#" onclick="document.getElementById('trace').style.display = 'block'; return false">Stack Trace</a></h2>
			<p id="trace" style="display: none">#{error.backtrace.join('<br />')}</p>
		<?r end ?>

		<h2><a href="#" onclick="document.getElementById('request').style.display = 'block'; return false">Request</a></h2>
		<div id="request" style="display: none">
			<p><strong>Parameters:</strong> #{request.params.reject{ |k,v| k == :__RELOADED__ }.inspect}</p>	
			<p><strong>Cookies:</strong> #{request.cookies.inspect}</p>	
			<p><strong>Headers:</strong><br />#{request.headers.collect { |k, v| "#{k} => #{v}" }.join('<br />')}</p>	
		</div>

		<h2><a href="#" onclick="document.getElementById('response').style.display = 'block'; return false">Response</a></h2>
		<div id="response" style="display: none">
			<p><strong>Headers:</strong> #{request.response_headers.inspect}</p>	
			<p><strong>Cookies:</strong> #{request.response_cookies.inspect}</p>	
		</div>

		<h2><a href="#" onclick="document.getElementById('session').style.display = 'block'; return false">Session</a></h2>
		<div id="session" style="display: none">
			<p><strong>Values:</strong> #{session.inspect}</p>	
		</div>
	</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.15.0 proto/public/error.xhtml
nitro-0.16.0 proto/public/error.xhtml