Sha256: 4f840c0e92438b9cf3fdf9d61cb295abc03f27aad1512e071b61d2550374a054

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 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

4 entries across 4 versions & 1 rubygems

Version Path
nitro-0.12.0 examples/blog/root/error.xhtml
nitro-0.13.0 examples/blog/src/views/error.xhtml
nitro-0.14.0 examples/blog/src/views/error.xhtml
nitro-0.15.0 examples/blog/src/views/error.xhtml