summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomer Kimia <tkimia@purdue.edu>2014-02-28 17:30:02 -0500
committerTomer Kimia <tkimia@purdue.edu>2014-02-28 17:30:02 -0500
commit5021d01548dd7b9d0080fc69c782f23bfb9a4620 (patch)
treee726cf2f799fcbc509f735cbac054951db61f120
parent96734ca0eef040effd0b5646ceeaccf39e2ebd38 (diff)
fixed db/seeds.rb and tried to get the game... did not succeed
-rw-r--r--app/controllers/tournaments_controller.rb2
-rw-r--r--db/seeds.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 86b869b..56233b6 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -14,7 +14,7 @@ class TournamentsController < ApplicationController
# GET /tournaments/new
def new
- @game_names = Game.all
+ @game_names = Game.all.collect
@tournament = Tournament.new
end
diff --git a/db/seeds.rb b/db/seeds.rb
index 58c9eba..ab130a8 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -6,6 +6,6 @@
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
#
-league = Game.create([{name: "League of Legends"}, {players_per_team: 5}, {teams_per_match: 2}, {set_rounds: 1}, {randomized_teams: 0}])
+Game.create(name: "League of Legends", players_per_team: 5, teams_per_match: 2, set_rounds: 1, randomized_teams: 0)