diff options
Diffstat (limited to 'app/views/games')
-rw-r--r-- | app/views/games/_form.html.erb | 4 | ||||
-rw-r--r-- | app/views/games/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/games/index.json.jbuilder | 2 | ||||
-rw-r--r-- | app/views/games/show.html.erb | 5 | ||||
-rw-r--r-- | app/views/games/show.json.jbuilder | 2 |
5 files changed, 2 insertions, 13 deletions
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 @@ -36,10 +36,6 @@ <%= f.number_field :max_teams_per_match %> </div> <div class="field"> - <%= f.label :sampling_method %><br> - <%= f.text_field :sampling_method %> - </div> - <div class="field"> <%= f.label :scoring_method %><br> <%= f.text_field :scoring_method %> </div> 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 @@ <th>Max players per team</th> <th>Min teams per match</th> <th>Max teams per match</th> - <th>Sampling method</th> <th>Scoring method</th> <th></th> <th></th> @@ -26,7 +25,6 @@ <td><%= game.max_players_per_team %></td> <td><%= game.min_teams_per_match %></td> <td><%= game.max_teams_per_match %></td> - <td><%= game.sampling_method %></td> <td><%= game.scoring_method %></td> <td><%= link_to 'Show', game %></td> <td><%= link_to 'Edit', edit_game_path(game) %></td> 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 @@ -31,11 +31,6 @@ </p> <p> - <strong>Sampling method:</strong> - <%= @game.sampling_method %> -</p> - -<p> <strong>Scoring method:</strong> <%= @game.scoring_method %> </p> 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 |