summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)