This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-11-06T21:42:49+00:00 app[web.1]: | |
2011-11-06T21:42:49+00:00 app[web.1]: | |
2011-11-06T21:42:49+00:00 app[web.1]: Started GET "/signup" for 24.246.15.43 at 2011-11-06 21:42:49 +0000 | |
2011-11-06T21:42:49+00:00 app[web.1]: Processing by UsersController#new as HTML | |
2011-11-06T21:42:49+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped | |
2011-11-06T21:42:49+00:00 app[web.1]: ORDER BY a.attnum | |
2011-11-06T21:42:49+00:00 app[web.1]: | |
2011-11-06T21:42:49+00:00 app[web.1]: Completed 500 Internal Server Error in 4ms | |
2011-11-06T21:42:49+00:00 heroku[router]: GET evening-leaf-2303.herokuapp.com/signup dyno=web.1 queue=0 wait=0ms service=22ms status=500 bytes=728 | |
2011-11-06T21:42:49+00:00 app[web.1]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><meta language="en-US"><link href="/kgsMain.css" rel="stylesheet" type="text/css"><title>KGS Game Archives</title><meta http-equiv="Content-Style-Type" content="text/css"><link rel="SHORTCUT ICON" href="http://files.gokgs.com/images/favicon.ico"></head><body><h1>KGS Game Archives</h1><h2>Games of KGS player andrew, Tue Nov 01 00:00:00 UTC 2011 (67 games)</h2><table class="grid"><tr><th>Viewable?</th><th>White</th><th>Black</th><th>Setup</th><th>Start Time<br>(<a href="tzList.jsp">GMT</a>)</th><th>Type</th><th>Result</th></tr><tr><td>No</td><td><a href="gameArchives.jsp?user=andrew">andrew [3d]</a></td><td><a href="gameArchives.jsp?user=Tempus">Tempus [-]</a></td><td>19×19 </td><td>11/29/11 11:23 PM</td><td>Free</td><td>W+Res.</td></tr><tr><td><a href="http://files.gokgs.com/games/2011/11/29/andrew-ninecrane.sgf">Yes</a></td><td><a href="gameAr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["<td>No", "<a href=\"gameArchives.jsp?user=andrew\">andrew [3d]</a>", "<a href=\"gameArchives.jsp?user=Tempus\">Tempus [-]</a>", "19×19 ", "11/29/11 11:23 PM", "Free", "W+Res.", "<a href=\"http://files.gokgs.com/games/2011/11/29/andrew-ninecrane.sgf\">Yes</a>", "<a href=\"gameArchives.jsp?user=andrew\">andrew [3d]</a>", "<a href=\"gameArchives.jsp?user=ninecrane\">ninecrane [2d]</a>", "19×19 ", "11/29/11 6:39 PM", "Ranked", "B+3.5", "<a href=\"http://files.gokgs.com/games/2011/11/29/MajingerZ-andrew.sgf\">Yes</a>", "<a href=\"gameArchives.jsp?user=MajingerZ\">MajingerZ [3d]</a>", "<a href=\"gameArchives.jsp?user=andrew\">andrew [3d]</a>", "19×19 ", "11/29/11 6:33 PM", "Ranked", "W+Res.", "<a href=\"http://files.gokgs.com/games/2011/11/29/andrew-zozo.sgf\">Yes</a>", "<a href=\"gameArchives.jsp?user=andrew\">andrew [3d]</a>", "<a href=\"gameArchives.jsp?user=zozo\">zozo [2d]</a>", "19×19 ", "11/29/11 5:59 PM", "Ranked", "B+Res.", "<a href=\"http://files.gokgs.com/games/2011/11/28/Gounicorn-andrew.sgf\">Yes</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tr> <td><a href="http://files.gokgs.com/games/2011/11/29/andrew-ninecrane.sgf">Yes</a></td> <td><a href="gameArchives.jsp?user=andrew">andrew [3d]</a></td> <td><a href="gameArchives.jsp?user=ninecrane">ninecrane [2d]</a></td> <td>19×19 </td> <td>11/29/11 6:39 PM</td> <td>Ranked</td> <td>B+3.5</td> </tr> | |
<!-- should output to: | |
http://files.gokgs.com/games/2011/11/29/andrew-ninecrane.sgf | |
andrew [3d] | |
ninecrane [2d] | |
19x19 | |
11/29/11 6:39 PM | |
Ranked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AdminController < ApplicationController | |
def manage | |
@division = User.division | |
end | |
def add_to_division | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_tag('/test') do %> | |
<table style="width:400px"> | |
<% @user.each do |item| %> | |
<tr> | |
<td><%= item.kgs_names %> | |
</td> | |
<td class="division"><%= select_tag(:division, options_for_select([["Alpha", 1], ["Beta I", 2], ["Beta II", 3], ["Gamma I", 4], ["Gamma II", 5], ["Gamma III", 6], ["Gamma IV", 7], ["Delta", 8]])) %></td> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_tag('/update', :method => "post") %> | |
<%= select_tag "kgs_names", options_from_collection_for_select(@user, "kgs_names", "kgs_names"), :multiple => true, :class => "kgs_names" %> | |
<%= select_tag "division", options_for_select(["Alpha", "Beta I", "Beta II", "Gamma I", "Gamma II", "Gamma III", "Gamma IV", "Delta"]), :class => "division" %> | |
<br /> | |
<%= submit_tag "Submit" %><br/> | |
<table style="width:400px"> | |
<% @user.each do |item| %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Sign up</h2> | |
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> | |
<%= devise_error_messages! %><div> | |
<div><%= f.label :username %><br /> | |
<%= f.text_field :username %></div> | |
<div><%= f.label :kgs_names %><br /> | |
<%= f.text_field :kgs_names %></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After trying to visit /users/hellhuman: | |
Couldn't find User with id=hellhuman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if valid_game == true | |
puts valid_game | |
if row["result_boolean"] == false | |
puts row["result_boolean"] | |
winner = User.find_by_kgs_names(row["black_player_name"]) | |
loser = User.find_by_kgs_names(row["white_player_name"]) | |
winner.points += 2 | |
loser.points += 1 | |
winner.save | |
loser.save |