Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9d8cd729e6
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (25 sloc) 1.106 kb
<h3>Enter two Twitter usernames</h3>
<form method="get" action="/follows" class="well form-horizontal" style="width: 60%">
Does <span class="input-prepend"><span class="add-on">@</span><input type="text" name="user1" placeholder="user1" class="span2"></span>
follow <span class="input-prepend"><span class="add-on">@</span><input type="text" name="user2" class="span2" placeholder="user2"></span> ?
<input type="submit" class="btn btn-small primary" value="Check">
<div id="leaderboard">
<h3>Top Ten user queries</h3>
<table class="table table-striped table-bordered" style="width: 60%">
<tr><th style="width: 10%">#</th><th style="width: 90%">Twitter handle</th></tr>
<% @leaders.each_with_index do |leader, index| %>
<tr><td><%= index+1 %></td><td><a href="<%= leader %>"><%= leader %></td></tr>
<% end %>
<div class="well" style="width: 60%">
port = ENV['VCAP_APP_PORT'] %>
<%= "<h4>This VCAP instance running at #{host}:#{port}</h4>" %>
Jump to Line
Something went wrong with that request. Please try again.