From e08e007a6c50e1959a29a9d18dec8c52146a233c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 28 Apr 2014 09:33:06 -0400 Subject: run ./generate.sh --- app/controllers/games_controller.rb | 2 +- app/controllers/tournaments_controller.rb | 2 +- app/views/games/_form.html.erb | 4 ---- app/views/games/index.html.erb | 2 -- app/views/games/index.json.jbuilder | 2 +- app/views/games/show.html.erb | 5 ----- app/views/games/show.json.jbuilder | 2 +- app/views/tournaments/_form.html.erb | 4 ---- app/views/tournaments/index.html.erb | 2 -- app/views/tournaments/index.json.jbuilder | 2 +- app/views/tournaments/show.html.erb | 5 ----- app/views/tournaments/show.json.jbuilder | 2 +- 12 files changed, 6 insertions(+), 28 deletions(-) (limited to 'app') diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 55d16a0..27df771 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -69,6 +69,6 @@ class GamesController < ApplicationController # Never trust parameters from the scary internet, only allow the white list through. def game_params - params.require(:game).permit(:parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method) + params.require(:game).permit(:parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :scoring_method) end end diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 1b84f82..51229cb 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -69,6 +69,6 @@ class TournamentsController < ApplicationController # Never trust parameters from the scary internet, only allow the white list through. def tournament_params - params.require(:tournament).permit(:game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method) + params.require(:tournament).permit(:game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :scoring_method) end end diff --git a/app/views/games/_form.html.erb b/app/views/games/_form.html.erb index e7def85..f796f87 100644 --- a/app/views/games/_form.html.erb +++ b/app/views/games/_form.html.erb @@ -35,10 +35,6 @@ <%= f.label :max_teams_per_match %>
<%= f.number_field :max_teams_per_match %> -
- <%= f.label :sampling_method %>
- <%= f.text_field :sampling_method %> -
<%= f.label :scoring_method %>
<%= f.text_field :scoring_method %> diff --git a/app/views/games/index.html.erb b/app/views/games/index.html.erb index 8c316de..71e59a0 100644 --- a/app/views/games/index.html.erb +++ b/app/views/games/index.html.erb @@ -9,7 +9,6 @@ Max players per team Min teams per match Max teams per match - Sampling method Scoring method @@ -26,7 +25,6 @@ <%= game.max_players_per_team %> <%= game.min_teams_per_match %> <%= game.max_teams_per_match %> - <%= game.sampling_method %> <%= game.scoring_method %> <%= link_to 'Show', game %> <%= link_to 'Edit', edit_game_path(game) %> diff --git a/app/views/games/index.json.jbuilder b/app/views/games/index.json.jbuilder index 0e9769b..d196201 100644 --- a/app/views/games/index.json.jbuilder +++ b/app/views/games/index.json.jbuilder @@ -1,4 +1,4 @@ json.array!(@games) do |game| - json.extract! game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method + json.extract! game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :scoring_method json.url game_url(game, format: :json) end diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb index f132d9a..28da040 100644 --- a/app/views/games/show.html.erb +++ b/app/views/games/show.html.erb @@ -30,11 +30,6 @@ <%= @game.max_teams_per_match %>

-

- Sampling method: - <%= @game.sampling_method %> -

-

Scoring method: <%= @game.scoring_method %> diff --git a/app/views/games/show.json.jbuilder b/app/views/games/show.json.jbuilder index 981c31e..9a0dab6 100644 --- a/app/views/games/show.json.jbuilder +++ b/app/views/games/show.json.jbuilder @@ -1 +1 @@ -json.extract! @game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method, :created_at, :updated_at +json.extract! @game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :scoring_method, :created_at, :updated_at diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index be5cf56..340efab 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -39,10 +39,6 @@ <%= f.label :max_teams_per_match %>
<%= f.number_field :max_teams_per_match %>

-
- <%= f.label :sampling_method %>
- <%= f.text_field :sampling_method %> -
<%= f.label :scoring_method %>
<%= f.text_field :scoring_method %> diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb index 1dddd5d..7bf8aa0 100644 --- a/app/views/tournaments/index.html.erb +++ b/app/views/tournaments/index.html.erb @@ -10,7 +10,6 @@ Max players per team Min teams per match Max teams per match - Sampling method Scoring method @@ -28,7 +27,6 @@ <%= tournament.max_players_per_team %> <%= tournament.min_teams_per_match %> <%= tournament.max_teams_per_match %> - <%= tournament.sampling_method %> <%= tournament.scoring_method %> <%= link_to 'Show', tournament %> <%= link_to 'Edit', edit_tournament_path(tournament) %> diff --git a/app/views/tournaments/index.json.jbuilder b/app/views/tournaments/index.json.jbuilder index c6b9e68..f92397f 100644 --- a/app/views/tournaments/index.json.jbuilder +++ b/app/views/tournaments/index.json.jbuilder @@ -1,4 +1,4 @@ json.array!(@tournaments) do |tournament| - json.extract! tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method + json.extract! tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :scoring_method json.url tournament_url(tournament, format: :json) end diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index f407295..ca65ac6 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -35,11 +35,6 @@ <%= @tournament.max_teams_per_match %>

-

- Sampling method: - <%= @tournament.sampling_method %> -

-

Scoring method: <%= @tournament.scoring_method %> diff --git a/app/views/tournaments/show.json.jbuilder b/app/views/tournaments/show.json.jbuilder index afc5814..888c6b2 100644 --- a/app/views/tournaments/show.json.jbuilder +++ b/app/views/tournaments/show.json.jbuilder @@ -1 +1 @@ -json.extract! @tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method, :created_at, :updated_at +json.extract! @tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :scoring_method, :created_at, :updated_at -- cgit v1.2.3