Skip to content

Commit

Permalink
debug screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mattb committed Jul 22, 2011
1 parent 36a0df8 commit e024658
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions othereplies/app.rb
Expand Up @@ -20,6 +20,11 @@ class OtherApp < Sinatra::Base
redirect '/auth/twitter'
end

get '/debug' do
@users = User.all.map { |u| User.new(u) }.sort_by { |u| u.screen_name.value }
erb :debug
end

get '/twitter/:token' do
@token = params[:token]
@juggernaut_port = 8081
Expand Down
10 changes: 10 additions & 0 deletions othereplies/views/debug.erb
@@ -0,0 +1,10 @@
<html>
<body>
<h1>Users</h1>
<ul>
<% for user in @users %>
<li><a href="/twitter/<%= user.token %>"><%= user.screen_name %></li>
<% end %>
</ul>
</body>
</html>

0 comments on commit e024658

Please sign in to comment.