Competition 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. data/README.md +14 -0
  2. data/app/assets/javascripts/competition/leaderboard.js +2 -0
  3. data/app/assets/stylesheets/competition/leaderboard.css +4 -0
  4. data/app/controllers/competition/leaderboard_controller.rb +10 -0
  5. data/app/helpers/competition/leaderboard_helper.rb +4 -0
  6. data/app/models/competition/score.rb +11 -0
  7. data/app/models/competition/score_entry.rb +7 -0
  8. data/app/views/competition/index.html.haml +1 -0
  9. data/app/views/competition/leaderboard/index.html.haml +12 -0
  10. data/config/routes.rb +1 -0
  11. data/db/migrate/20120711201029_create_competition_scores.rb +10 -0
  12. data/db/migrate/20120711201300_create_competition_score_entries.rb +12 -0
  13. data/lib/competition.rb +65 -0
  14. data/lib/competition/version.rb +1 -1
  15. data/test/dummy/app/models/test_case.rb +9 -0
  16. data/test/dummy/app/models/user.rb +10 -0
  17. data/test/dummy/db/development.sqlite3 +0 -0
  18. data/test/dummy/db/migrate/20120711203936_create_users.rb +9 -0
  19. data/test/dummy/db/migrate/20120711204952_create_test_cases.rb +9 -0
  20. data/test/dummy/db/schema.rb +49 -0
  21. data/test/dummy/db/test.sqlite3 +0 -0
  22. data/test/dummy/log/development.log +692 -0
  23. data/test/dummy/log/test.log +9 -0
  24. data/test/dummy/test/fixtures/test_cases.yml +7 -0
  25. data/test/dummy/test/fixtures/tests.yml +11 -0
  26. data/test/dummy/test/fixtures/users.yml +7 -0
  27. data/test/dummy/test/unit/test_case_test.rb +7 -0
  28. data/test/dummy/test/unit/test_test.rb +7 -0
  29. data/test/dummy/test/unit/user_test.rb +7 -0
  30. data/test/dummy/tmp/cache/assets/C7F/620/sprockets%2Fd72b51035cf11619b241599f9a09076e +0 -0
  31. data/test/dummy/tmp/cache/assets/CAB/DB0/sprockets%2F67b070f1d5449422097b3c1af7f4217e +0 -0
  32. data/test/dummy/tmp/cache/assets/CAF/720/sprockets%2Fb0d81f2e48f10e8d22533b28e7176806 +0 -0
  33. data/test/dummy/tmp/cache/assets/CDC/DA0/sprockets%2Fe80a33d3411338f321052f5fcf7bd896 +0 -0
  34. data/test/dummy/tmp/cache/assets/D05/700/sprockets%2F535e73cb913409c0b47ba6245f14a5ed +0 -0
  35. data/test/dummy/tmp/cache/assets/D1D/680/sprockets%2F2fc57638d98394335c7ae39f14c1e2eb +0 -0
  36. data/test/dummy/tmp/cache/assets/D36/080/sprockets%2F5c996fa9faf3897243bf07946f9f248d +0 -0
  37. data/test/dummy/tmp/cache/assets/D5E/330/sprockets%2F4ca523efcb75015359d024ef5d32bdd0 +0 -0
  38. data/test/dummy/tmp/cache/assets/D73/6E0/sprockets%2F35c017b1eebfdb836545249bc7f1f39f +0 -0
  39. data/test/dummy/tmp/cache/assets/DB1/7D0/sprockets%2F56f80a6eb42c2c5b59e5e6dcf73f98e3 +0 -0
  40. data/test/dummy/tmp/cache/assets/DF2/850/sprockets%2F2d3f4f54dd9dea8303904bcba41b0eee +0 -0
  41. data/test/dummy/tmp/cache/assets/E33/C20/sprockets%2Fffef4e4cba281218e28ccd9de02ae6e9 +0 -0
  42. data/test/dummy/tmp/cache/assets/E6C/440/sprockets%2Fec82e452be37caed84df785e3bbfcdd9 +0 -0
  43. data/test/dummy/tmp/cache/assets/EA1/CA0/sprockets%2Ff56d8ed69dc75ea808ebbcfc1b62ffef +0 -0
  44. data/test/fixtures/competition/score_entries.yml +9 -0
  45. data/test/fixtures/competition/scores.yml +9 -0
  46. data/test/functional/competition/leaderboard_controller_test.rb +9 -0
  47. data/test/unit/competition/score_entry_test.rb +9 -0
  48. data/test/unit/competition/score_test.rb +9 -0
  49. data/test/unit/helpers/competition/leaderboard_helper_test.rb +6 -0
  50. metadata +85 -5
  51. data/README.rdoc +0 -3
@@ -0,0 +1,14 @@
1
+ ### Competition
2
+
3
+ On the model you want to keep score of, usually your User model, put this code:
4
+
5
+ has_score
6
+
7
+ On the model that awards score put this code:
8
+
9
+ keeps_score :if => Proc.new { true },
10
+ :on => [:create],
11
+ :amount => Proc.new { |tc| 1 },
12
+ :for => Proc.new {|o| o.user }
13
+
14
+ then goto /competition/leaderboard and viola!
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,10 @@
1
+ require_dependency "competition/application_controller"
2
+
3
+ module Competition
4
+ class LeaderboardController < ApplicationController
5
+ def index
6
+ #TODO: Make this not suck
7
+ @scores = Competition::Score.all.sort {|a, b| b.score_entries.sum(:amount) <=> a.score_entries.sum(:amount)}
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ module Competition
2
+ module LeaderboardHelper
3
+ end
4
+ end
@@ -0,0 +1,11 @@
1
+ module Competition
2
+ class Score < ActiveRecord::Base
3
+ attr_accessible :scoreable_id, :scoreable_type
4
+ belongs_to :scoreable, :polymorphic => true
5
+ has_many :score_entries
6
+
7
+ def total
8
+ score_entries.sum(:amount)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ module Competition
2
+ class ScoreEntry < ActiveRecord::Base
3
+ attr_accessible :amount, :score_id, :score_entryable_type, :score_entryable_id
4
+ belongs_to :score, :class_name => "Competition::Score"
5
+ belongs_to :score_entryable, :polymorphic => true
6
+ end
7
+ end
@@ -0,0 +1 @@
1
+ %h1 Leaderboard
@@ -0,0 +1,12 @@
1
+ %h1 Leaderboard
2
+
3
+ %table
4
+ %tr
5
+ %th Rank
6
+ %th
7
+ %th Total
8
+ -@scores.each_with_index do |score, index|
9
+ %tr
10
+ %td= index + 1
11
+ %td= score.scoreable
12
+ %td= score.score_entries.sum(:amount)
@@ -1,2 +1,3 @@
1
1
  Competition::Engine.routes.draw do
2
+ resources :leaderboard, :only => [:index]
2
3
  end
@@ -0,0 +1,10 @@
1
+ class CreateCompetitionScores < ActiveRecord::Migration
2
+ def change
3
+ create_table :competition_scores do |t|
4
+ t.string :scoreable_type
5
+ t.integer :scoreable_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCompetitionScoreEntries < ActiveRecord::Migration
2
+ def change
3
+ create_table :competition_score_entries do |t|
4
+ t.string :score_entryable_type
5
+ t.integer :score_entryable_id
6
+ t.integer :score_id
7
+ t.integer :amount
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -1,4 +1,69 @@
1
1
  require "competition/engine"
2
+ require 'active_support/concern'
2
3
 
3
4
  module Competition
5
+ extend ActiveSupport::Concern
6
+
7
+ module ClassMethods
8
+ @@score_with = nil
9
+ @@score_if = nil
10
+ @@score_amount = nil
11
+ def has_score
12
+ self.class_eval {
13
+ has_one :score, :as => :scoreable, :class_name => "Competition::Score"
14
+ }
15
+ end
16
+
17
+ def keeps_score options={}
18
+ self.class_eval {
19
+ has_many :score_entries, :as => :score_entryable, :class_name => "Competition::ScoreEntry"
20
+ }
21
+
22
+ options[:on].each do |event|
23
+ case event
24
+ when :create
25
+ self.class_eval {
26
+ after_create :add_score
27
+ }
28
+ when :update
29
+ self.class_eval {
30
+ after_save :add_score
31
+ }
32
+ end
33
+ end
34
+ @@score_with = options[:for]
35
+ @@score_if = options[:if]
36
+ @@score_amount = options[:amount]
37
+ end
38
+
39
+ def score_with
40
+ @@score_with
41
+ end
42
+
43
+ def score_if
44
+ @@score_if
45
+ end
46
+
47
+ def score_amount
48
+ @@score_amount
49
+ end
50
+ end
51
+
52
+ def add_score
53
+ return unless score?
54
+ score = Competition::Score.find_or_create_by_scoreable_type_and_scoreable_id(score_with.class.to_s, score_with.id)
55
+ Competition::ScoreEntry.create(:amount => score_amount, :score_id => score.id, :score_entryable_type => self.class.to_s, :score_entryable_id => self.id )
56
+ end
57
+
58
+ def score_amount
59
+ @score_amount ||= self.class.score_amount.call(self)
60
+ end
61
+
62
+ def score?
63
+ @score_if ||= self.class.score_if.call(self)
64
+ end
65
+
66
+ def score_with
67
+ @score_with ||= self.class.score_with.call(self)
68
+ end
4
69
  end
@@ -1,3 +1,3 @@
1
1
  module Competition
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,9 @@
1
+ class TestCase < ActiveRecord::Base
2
+ include Competition
3
+ attr_accessible :user_id
4
+ belongs_to :user
5
+ keeps_score :if => Proc.new { true },
6
+ :on => [:create],
7
+ :amount => Proc.new { |tc| 1 },
8
+ :for => Proc.new {|o| o.user }
9
+ end
@@ -0,0 +1,10 @@
1
+ class User < ActiveRecord::Base
2
+ include Competition
3
+ attr_accessible :id
4
+
5
+ has_score
6
+
7
+ def to_s
8
+ "Adam Gamble"
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.integer :id
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateTestCases < ActiveRecord::Migration
2
+ def change
3
+ create_table :test_cases do |t|
4
+ t.integer :user_id
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,49 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20120711204952) do
15
+
16
+ create_table "competition_score_entries", :force => true do |t|
17
+ t.string "score_entryable_type"
18
+ t.integer "score_entryable_id"
19
+ t.integer "score_id"
20
+ t.integer "amount"
21
+ t.datetime "created_at", :null => false
22
+ t.datetime "updated_at", :null => false
23
+ end
24
+
25
+ create_table "competition_scores", :force => true do |t|
26
+ t.string "scoreable_type"
27
+ t.integer "scoreable_id"
28
+ t.datetime "created_at", :null => false
29
+ t.datetime "updated_at", :null => false
30
+ end
31
+
32
+ create_table "test_cases", :force => true do |t|
33
+ t.integer "user_id"
34
+ t.datetime "created_at", :null => false
35
+ t.datetime "updated_at", :null => false
36
+ end
37
+
38
+ create_table "tests", :force => true do |t|
39
+ t.integer "user_id"
40
+ t.datetime "created_at", :null => false
41
+ t.datetime "updated_at", :null => false
42
+ end
43
+
44
+ create_table "users", :force => true do |t|
45
+ t.datetime "created_at", :null => false
46
+ t.datetime "updated_at", :null => false
47
+ end
48
+
49
+ end
File without changes
@@ -0,0 +1,692 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
+  (0.0ms) PRAGMA index_list("schema_migrations")
5
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7
+ Migrating to CreateCompetitionScores (20120711201029)
8
+  (0.0ms) begin transaction
9
+  (0.3ms) CREATE TABLE "competition_scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "scoreable_type" varchar(255), "scoreable_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
10
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711201029')
11
+  (0.8ms) commit transaction
12
+ Migrating to CreateCompetitionScoreEntries (20120711201300)
13
+  (0.0ms) begin transaction
14
+  (0.2ms) CREATE TABLE "competition_score_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "score_id" integer, "score" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
15
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711201300')
16
+  (0.6ms) commit transaction
17
+  (0.2ms) select sqlite_version(*)
18
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
19
+  (0.0ms) PRAGMA index_list("competition_score_entries")
20
+  (0.0ms) PRAGMA index_list("competition_scores")
21
+ Connecting to database specified by database.yml
22
+ Connecting to database specified by database.yml
23
+ Connecting to database specified by database.yml
24
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
25
+ Migrating to CreateTests (20120711203915)
26
+  (0.0ms) select sqlite_version(*)
27
+  (0.0ms) begin transaction
28
+  (0.4ms) CREATE TABLE "tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
29
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203915')
30
+  (2.8ms) commit transaction
31
+ Migrating to CreateUsers (20120711203936)
32
+  (0.4ms) begin transaction
33
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
34
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203936')
35
+  (0.8ms) commit transaction
36
+  (0.2ms) select sqlite_version(*)
37
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
38
+  (0.0ms) PRAGMA index_list("competition_score_entries")
39
+  (0.0ms) PRAGMA index_list("competition_scores")
40
+  (0.0ms) PRAGMA index_list("tests")
41
+  (0.0ms) PRAGMA index_list("users")
42
+ Connecting to database specified by database.yml
43
+ Connecting to database specified by database.yml
44
+ Connecting to database specified by database.yml
45
+ Connecting to database specified by database.yml
46
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
47
+ Connecting to database specified by database.yml
48
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
49
+ Connecting to database specified by database.yml
50
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
51
+ Connecting to database specified by database.yml
52
+ Connecting to database specified by database.yml
53
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54
+ Migrating to CreateTests (20120711203915)
55
+ Migrating to CreateUsers (20120711203936)
56
+ Migrating to CreateTestCases (20120711204952)
57
+  (0.0ms) select sqlite_version(*)
58
+  (0.0ms) begin transaction
59
+  (0.4ms) CREATE TABLE "test_cases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
60
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711204952')
61
+  (2.3ms) commit transaction
62
+  (0.2ms) select sqlite_version(*)
63
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
64
+  (0.0ms) PRAGMA index_list("competition_score_entries")
65
+  (0.0ms) PRAGMA index_list("competition_scores")
66
+  (0.0ms) PRAGMA index_list("test_cases")
67
+  (0.0ms) PRAGMA index_list("tests")
68
+  (0.0ms) PRAGMA index_list("users")
69
+ Connecting to database specified by database.yml
70
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
71
+ Connecting to database specified by database.yml
72
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
73
+ Connecting to database specified by database.yml
74
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
75
+ Connecting to database specified by database.yml
76
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
77
+ Connecting to database specified by database.yml
78
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
79
+ Connecting to database specified by database.yml
80
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
81
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
82
+ Connecting to database specified by database.yml
83
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
84
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
85
+ Connecting to database specified by database.yml
86
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
87
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
88
+ Connecting to database specified by database.yml
89
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
90
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
91
+ Connecting to database specified by database.yml
92
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
93
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
94
+ Connecting to database specified by database.yml
95
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
96
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
97
+ Connecting to database specified by database.yml
98
+ Connecting to database specified by database.yml
99
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
100
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
101
+ Connecting to database specified by database.yml
102
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
103
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
104
+ Connecting to database specified by database.yml
105
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
106
+ Connecting to database specified by database.yml
107
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
108
+ Connecting to database specified by database.yml
109
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
110
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
111
+ Connecting to database specified by database.yml
112
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
113
+ Connecting to database specified by database.yml
114
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
115
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
116
+ Connecting to database specified by database.yml
117
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
118
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
119
+ Connecting to database specified by database.yml
120
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
121
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
122
+ Connecting to database specified by database.yml
123
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
124
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
125
+ Connecting to database specified by database.yml
126
+  (0.1ms) select sqlite_version(*)
127
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
128
+  (0.3ms) PRAGMA index_list("schema_migrations")
129
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
130
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
131
+ Migrating to CreateTests (20120711203915)
132
+  (0.0ms) begin transaction
133
+  (0.3ms) CREATE TABLE "tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
134
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203915')
135
+  (0.7ms) commit transaction
136
+ Migrating to CreateUsers (20120711203936)
137
+  (0.0ms) begin transaction
138
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
139
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203936')
140
+  (0.7ms) commit transaction
141
+ Migrating to CreateTestCases (20120711204952)
142
+  (0.1ms) begin transaction
143
+  (0.2ms) CREATE TABLE "test_cases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
144
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711204952')
145
+  (0.6ms) commit transaction
146
+  (0.2ms) select sqlite_version(*)
147
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
148
+  (0.0ms) PRAGMA index_list("test_cases")
149
+  (0.0ms) PRAGMA index_list("tests")
150
+  (0.0ms) PRAGMA index_list("users")
151
+ Connecting to database specified by database.yml
152
+  (0.1ms) select sqlite_version(*)
153
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
154
+  (0.3ms) PRAGMA index_list("schema_migrations")
155
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
156
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
157
+ Migrating to CreateCompetitionScores (20120711201029)
158
+  (0.0ms) begin transaction
159
+  (0.3ms) CREATE TABLE "competition_scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "scoreable_type" varchar(255), "scoreable_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
160
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711201029')
161
+  (0.8ms) commit transaction
162
+ Migrating to CreateCompetitionScoreEntries (20120711201300)
163
+  (0.0ms) begin transaction
164
+  (0.2ms) CREATE TABLE "competition_score_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "score_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
165
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711201300')
166
+  (0.6ms) commit transaction
167
+ Migrating to CreateTests (20120711203915)
168
+  (0.0ms) begin transaction
169
+  (0.2ms) CREATE TABLE "tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
170
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203915')
171
+  (0.9ms) commit transaction
172
+ Migrating to CreateUsers (20120711203936)
173
+  (0.0ms) begin transaction
174
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
175
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203936')
176
+  (0.8ms) commit transaction
177
+ Migrating to CreateTestCases (20120711204952)
178
+  (0.0ms) begin transaction
179
+  (0.2ms) CREATE TABLE "test_cases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
180
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711204952')
181
+  (0.8ms) commit transaction
182
+  (0.2ms) select sqlite_version(*)
183
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
184
+  (0.0ms) PRAGMA index_list("competition_score_entries")
185
+  (0.0ms) PRAGMA index_list("competition_scores")
186
+  (0.0ms) PRAGMA index_list("test_cases")
187
+  (0.0ms) PRAGMA index_list("tests")
188
+  (0.0ms) PRAGMA index_list("users")
189
+ Connecting to database specified by database.yml
190
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
191
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
192
+ Connecting to database specified by database.yml
193
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
194
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
195
+ Connecting to database specified by database.yml
196
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
197
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
198
+ Connecting to database specified by database.yml
199
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
200
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
201
+ Connecting to database specified by database.yml
202
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
203
+ Connecting to database specified by database.yml
204
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
205
+ Connecting to database specified by database.yml
206
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/user.rb:2)
207
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Competition instead. (called from include at /Users/adamgamble/rails/competition/test/dummy/app/models/test_case.rb:2)
208
+ Connecting to database specified by database.yml
209
+ Connecting to database specified by database.yml
210
+ Connecting to database specified by database.yml
211
+  (0.1ms) select sqlite_version(*)
212
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
213
+  (0.0ms) PRAGMA index_list("schema_migrations")
214
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
215
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
216
+ Migrating to CreateCompetitionScores (20120711201029)
217
+  (0.0ms) begin transaction
218
+  (0.3ms) CREATE TABLE "competition_scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "scoreable_type" varchar(255), "scoreable_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
219
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711201029')
220
+  (0.9ms) commit transaction
221
+ Migrating to CreateCompetitionScoreEntries (20120711201300)
222
+  (0.0ms) begin transaction
223
+  (0.2ms) CREATE TABLE "competition_score_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "score_entryable_type" varchar(255), "score_entryable_id" integer, "score_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
224
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711201300')
225
+  (0.7ms) commit transaction
226
+ Migrating to CreateTests (20120711203915)
227
+  (0.1ms) begin transaction
228
+  (0.3ms) CREATE TABLE "tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
229
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203915')
230
+  (0.7ms) commit transaction
231
+ Migrating to CreateUsers (20120711203936)
232
+  (0.0ms) begin transaction
233
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
234
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711203936')
235
+  (0.8ms) commit transaction
236
+ Migrating to CreateTestCases (20120711204952)
237
+  (0.0ms) begin transaction
238
+  (0.3ms) CREATE TABLE "test_cases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
239
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120711204952')
240
+  (0.7ms) commit transaction
241
+  (0.2ms) select sqlite_version(*)
242
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
243
+  (12.2ms) PRAGMA index_list("competition_score_entries")
244
+  (0.0ms) PRAGMA index_list("competition_scores")
245
+  (0.0ms) PRAGMA index_list("test_cases")
246
+  (0.0ms) PRAGMA index_list("tests")
247
+  (0.0ms) PRAGMA index_list("users")
248
+ Connecting to database specified by database.yml
249
+ Connecting to database specified by database.yml
250
+ Connecting to database specified by database.yml
251
+ Connecting to database specified by database.yml
252
+
253
+
254
+ Started GET "/" for 127.0.0.1 at 2012-07-11 21:36:06 -0500
255
+ Connecting to database specified by database.yml
256
+
257
+ ActionController::RoutingError (No route matches [GET] "/"):
258
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
259
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
260
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
261
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
262
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
263
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
264
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
265
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
266
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
267
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
268
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
269
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
270
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
271
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
272
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
273
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
274
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
275
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
276
+
277
+
278
+ Rendered /Users/adamgamble/.rvm/gems/ruby-1.9.3-p194@competition/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
279
+
280
+
281
+ Started GET "/" for 127.0.0.1 at 2012-07-11 21:36:07 -0500
282
+
283
+ ActionController::RoutingError (No route matches [GET] "/"):
284
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
285
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
286
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
287
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
288
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
289
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
290
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
291
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
292
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
293
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
294
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
295
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
296
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
297
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
298
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
299
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
300
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
301
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
302
+
303
+
304
+ Rendered /Users/adamgamble/.rvm/gems/ruby-1.9.3-p194@competition/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
305
+
306
+
307
+ Started GET "/leaderboards" for 127.0.0.1 at 2012-07-11 21:36:12 -0500
308
+
309
+ ActionController::RoutingError (No route matches [GET] "/leaderboards"):
310
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
311
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
312
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
313
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
314
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
315
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
316
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
317
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
318
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
319
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
320
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
321
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
322
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
323
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
324
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
325
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
326
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
327
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
328
+
329
+
330
+ Rendered /Users/adamgamble/.rvm/gems/ruby-1.9.3-p194@competition/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
331
+
332
+
333
+ Started GET "/competition/leaderboards" for 127.0.0.1 at 2012-07-11 21:36:22 -0500
334
+
335
+ ActionController::RoutingError (uninitialized constant Competition::LeaderboardsController):
336
+ activesupport (3.2.6) lib/active_support/inflector/methods.rb:229:in `block in constantize'
337
+ activesupport (3.2.6) lib/active_support/inflector/methods.rb:228:in `each'
338
+ activesupport (3.2.6) lib/active_support/inflector/methods.rb:228:in `constantize'
339
+ actionpack (3.2.6) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference'
340
+ actionpack (3.2.6) lib/action_dispatch/routing/route_set.rb:54:in `controller'
341
+ actionpack (3.2.6) lib/action_dispatch/routing/route_set.rb:32:in `call'
342
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
343
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
344
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
345
+ actionpack (3.2.6) lib/action_dispatch/routing/route_set.rb:600:in `call'
346
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
347
+ railties (3.2.6) lib/rails/railtie/configurable.rb:30:in `method_missing'
348
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
349
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
350
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
351
+ actionpack (3.2.6) lib/action_dispatch/routing/route_set.rb:600:in `call'
352
+ actionpack (3.2.6) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
353
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
354
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
355
+ actionpack (3.2.6) lib/action_dispatch/middleware/head.rb:14:in `call'
356
+ actionpack (3.2.6) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
357
+ actionpack (3.2.6) lib/action_dispatch/middleware/flash.rb:242:in `call'
358
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
359
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
360
+ actionpack (3.2.6) lib/action_dispatch/middleware/cookies.rb:338:in `call'
361
+ activerecord (3.2.6) lib/active_record/query_cache.rb:64:in `call'
362
+ activerecord (3.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
363
+ actionpack (3.2.6) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
364
+ activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `_run__2940041773427470090__call__4097513200481334581__callbacks'
365
+ activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `__run_callback'
366
+ activesupport (3.2.6) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
367
+ activesupport (3.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
368
+ actionpack (3.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
369
+ actionpack (3.2.6) lib/action_dispatch/middleware/reloader.rb:65:in `call'
370
+ actionpack (3.2.6) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
371
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
372
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
373
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
374
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
375
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
376
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
377
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
378
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
379
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
380
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
381
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
382
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
383
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
384
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
385
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
386
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
387
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
388
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
389
+
390
+
391
+ Rendered /Users/adamgamble/.rvm/gems/ruby-1.9.3-p194@competition/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
392
+
393
+
394
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:36:49 -0500
395
+ Connecting to database specified by database.yml
396
+
397
+ ActionController::RoutingError (No route matches [GET] "/competition/leaderboard"):
398
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
399
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
400
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
401
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
402
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
403
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
404
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
405
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
406
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
407
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
408
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
409
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
410
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
411
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
412
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
413
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
414
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
415
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
416
+
417
+
418
+ Rendered /Users/adamgamble/.rvm/gems/ruby-1.9.3-p194@competition/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
419
+
420
+
421
+ Started GET "/competition/leaderboards" for 127.0.0.1 at 2012-07-11 21:37:13 -0500
422
+ Connecting to database specified by database.yml
423
+
424
+ ActionController::RoutingError (No route matches [GET] "/competition/leaderboards"):
425
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
426
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
427
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
428
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
429
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
430
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
431
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
432
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
433
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
434
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
435
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
436
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
437
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
438
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
439
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
440
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
441
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
442
+ /Users/adamgamble/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
443
+
444
+
445
+ Rendered /Users/adamgamble/.rvm/gems/ruby-1.9.3-p194@competition/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
446
+
447
+
448
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
449
+ Processing by Competition::LeaderboardController#index as HTML
450
+ Competition::Score Load (0.2ms) SELECT *, SUM('competition_score_entries'.'amount') as competition_score_entry_amounts FROM "competition_scores" INNER JOIN "competition_score_entries" ON "competition_score_entries"."score_id" = "competition_scores"."id" ORDER BY competition_score_entry_amounts DESC
451
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
452
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 1
453
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (35.8ms)
454
+ Compiled competition/leaderboard.css (0ms) (pid 4677)
455
+ Compiled competition/application.css (6ms) (pid 4677)
456
+ Compiled jquery.js (1ms) (pid 4677)
457
+ Compiled jquery_ujs.js (0ms) (pid 4677)
458
+ Compiled competition/leaderboard.js (0ms) (pid 4677)
459
+ Compiled competition/application.js (41ms) (pid 4677)
460
+ Completed 200 OK in 174ms (Views: 125.5ms | ActiveRecord: 2.1ms)
461
+
462
+
463
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
464
+ Served asset /competition/application.css - 200 OK (5ms)
465
+
466
+
467
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
468
+ Served asset /jquery_ujs.js - 200 OK (3ms)
469
+
470
+
471
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
472
+ Served asset /competition/leaderboard.css - 200 OK (3ms)
473
+
474
+
475
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
476
+ Served asset /jquery.js - 200 OK (1ms)
477
+
478
+
479
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
480
+ Served asset /competition/leaderboard.js - 200 OK (1ms)
481
+
482
+
483
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:37:19 -0500
484
+ Served asset /competition/application.js - 200 OK (4ms)
485
+
486
+
487
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
488
+ Connecting to database specified by database.yml
489
+ Processing by Competition::LeaderboardController#index as HTML
490
+ Competition::Score Load (0.2ms) SELECT *, SUM('competition_score_entries'.'amount') as competition_score_entry_amounts FROM "competition_scores" INNER JOIN "competition_score_entries" ON "competition_score_entries"."score_id" = "competition_scores"."id" ORDER BY competition_score_entry_amounts DESC
491
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
492
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 1
493
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (31.4ms)
494
+ Completed 200 OK in 88ms (Views: 46.6ms | ActiveRecord: 1.9ms)
495
+
496
+
497
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
498
+ Served asset /competition/application.css - 304 Not Modified (17ms)
499
+
500
+
501
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
502
+ Served asset /competition/leaderboard.css - 304 Not Modified (3ms)
503
+
504
+
505
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
506
+ Served asset /jquery.js - 304 Not Modified (3ms)
507
+
508
+
509
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
510
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
511
+
512
+
513
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
514
+ Served asset /competition/leaderboard.js - 304 Not Modified (2ms)
515
+
516
+
517
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:00 -0500
518
+ Served asset /competition/application.js - 304 Not Modified (4ms)
519
+
520
+
521
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
522
+ Connecting to database specified by database.yml
523
+ Processing by Competition::LeaderboardController#index as HTML
524
+ Competition::Score Load (0.2ms) SELECT *, SUM('competition_score_entries'.'amount') as competition_score_entry_amounts FROM "competition_scores" INNER JOIN "competition_score_entries" ON "competition_score_entries"."score_id" = "competition_scores"."id" ORDER BY competition_score_entry_amounts DESC
525
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
526
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 1
527
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (32.7ms)
528
+ Completed 200 OK in 89ms (Views: 47.7ms | ActiveRecord: 1.8ms)
529
+
530
+
531
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
532
+ Served asset /competition/application.css - 304 Not Modified (16ms)
533
+
534
+
535
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
536
+ Served asset /jquery_ujs.js - 304 Not Modified (3ms)
537
+
538
+
539
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
540
+ Served asset /competition/leaderboard.css - 304 Not Modified (1ms)
541
+
542
+
543
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
544
+ Served asset /jquery.js - 304 Not Modified (1ms)
545
+
546
+
547
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
548
+ Served asset /competition/leaderboard.js - 304 Not Modified (1ms)
549
+
550
+
551
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:38:38 -0500
552
+ Served asset /competition/application.js - 304 Not Modified (3ms)
553
+ Connecting to database specified by database.yml
554
+
555
+
556
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
557
+ Connecting to database specified by database.yml
558
+ Processing by Competition::LeaderboardController#index as HTML
559
+ Competition::Score Load (0.2ms) SELECT *, SUM('competition_score_entries'.'amount') as competition_score_entry_amounts FROM "competition_scores" INNER JOIN "competition_score_entries" ON "competition_score_entries"."score_id" = "competition_scores"."id" ORDER BY competition_score_entry_amounts DESC
560
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
561
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 6
562
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (31.9ms)
563
+ Completed 200 OK in 88ms (Views: 47.1ms | ActiveRecord: 1.8ms)
564
+
565
+
566
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
567
+ Served asset /competition/application.css - 304 Not Modified (16ms)
568
+
569
+
570
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
571
+ Served asset /competition/leaderboard.css - 304 Not Modified (1ms)
572
+
573
+
574
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
575
+ Served asset /competition/leaderboard.js - 304 Not Modified (1ms)
576
+
577
+
578
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
579
+ Served asset /jquery.js - 304 Not Modified (4ms)
580
+
581
+
582
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
583
+ Served asset /competition/application.js - 304 Not Modified (4ms)
584
+
585
+
586
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:08 -0500
587
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
588
+
589
+
590
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
591
+ Processing by Competition::LeaderboardController#index as HTML
592
+ Competition::Score Load (0.3ms) SELECT *, SUM('competition_score_entries'.'amount') as competition_score_entry_amounts FROM "competition_scores" INNER JOIN "competition_score_entries" ON "competition_score_entries"."score_id" = "competition_scores"."id" ORDER BY competition_score_entry_amounts DESC
593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
594
+  (0.2ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 6
595
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (2.3ms)
596
+ Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.6ms)
597
+
598
+
599
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
600
+ Served asset /competition/application.css - 304 Not Modified (0ms)
601
+
602
+
603
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
604
+ Served asset /competition/leaderboard.css - 304 Not Modified (0ms)
605
+
606
+
607
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
608
+ Served asset /jquery.js - 304 Not Modified (0ms)
609
+
610
+
611
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
612
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
613
+
614
+
615
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
616
+ Served asset /competition/leaderboard.js - 304 Not Modified (0ms)
617
+
618
+
619
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:10 -0500
620
+ Served asset /competition/application.js - 304 Not Modified (0ms)
621
+
622
+
623
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
624
+ Processing by Competition::LeaderboardController#index as HTML
625
+ Competition::Score Load (0.3ms) SELECT *, SUM('competition_score_entries'.'amount') as competition_score_entry_amounts FROM "competition_scores" INNER JOIN "competition_score_entries" ON "competition_score_entries"."score_id" = "competition_scores"."id" ORDER BY competition_score_entry_amounts DESC
626
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
627
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 6
628
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (2.1ms)
629
+ Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.6ms)
630
+
631
+
632
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
633
+ Served asset /competition/application.css - 304 Not Modified (0ms)
634
+
635
+
636
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
637
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
638
+
639
+
640
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
641
+ Served asset /competition/leaderboard.css - 304 Not Modified (0ms)
642
+
643
+
644
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
645
+ Served asset /jquery.js - 304 Not Modified (0ms)
646
+
647
+
648
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
649
+ Served asset /competition/leaderboard.js - 304 Not Modified (0ms)
650
+
651
+
652
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:39:11 -0500
653
+ Served asset /competition/application.js - 304 Not Modified (0ms)
654
+ Connecting to database specified by database.yml
655
+
656
+
657
+ Started GET "/competition/leaderboard" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
658
+ Connecting to database specified by database.yml
659
+ Processing by Competition::LeaderboardController#index as HTML
660
+ Competition::Score Load (0.1ms) SELECT "competition_scores".* FROM "competition_scores" 
661
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 2
662
+  (0.1ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 1
663
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
664
+ CACHE (0.0ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 2
665
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
666
+ CACHE (0.0ms) SELECT SUM("competition_score_entries"."amount") AS sum_id FROM "competition_score_entries" WHERE "competition_score_entries"."score_id" = 1
667
+ Rendered /Users/adamgamble/rails/competition/app/views/competition/leaderboard/index.html.haml within layouts/competition/application (11.7ms)
668
+ Completed 200 OK in 87ms (Views: 40.2ms | ActiveRecord: 1.9ms)
669
+
670
+
671
+ Started GET "/assets/competition/application.css?body=1" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
672
+ Served asset /competition/application.css - 304 Not Modified (2ms)
673
+
674
+
675
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
676
+ Served asset /jquery.js - 304 Not Modified (6ms)
677
+
678
+
679
+ Started GET "/assets/competition/leaderboard.css?body=1" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
680
+ Served asset /competition/leaderboard.css - 304 Not Modified (1ms)
681
+
682
+
683
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
684
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
685
+
686
+
687
+ Started GET "/assets/competition/leaderboard.js?body=1" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
688
+ Served asset /competition/leaderboard.js - 304 Not Modified (1ms)
689
+
690
+
691
+ Started GET "/assets/competition/application.js?body=1" for 127.0.0.1 at 2012-07-11 21:44:24 -0500
692
+ Served asset /competition/application.js - 304 Not Modified (4ms)