public/index.html
<html>
<head>
<title>Rack Powers Web APIs</title>
<script src="/scripts/jquery-1.7.1.min.js"></script>
<script src="/scripts/ring.js"></script>
<script src="/scripts/stream.js"></script>
</head>
<body>
<h1>Rack Powers Web APIs</h1>
<a href="http://rack.rubyforge.org/">
<img src="images/rack-logo.png">
</a>
<ul>
<li><a href="/api/ping.json">Ping!</a></li>
<li>
<div>
<span id='ring_value'>fetching ring value ...</span>
<span id='ring_action' style="text-decoration: underline; cursor: pointer"></span>
</div>
</li>
<li><span id='stream_value'>fetching stream data ...</span></li>
</ul>
</body>
</html>