From 4c5c8b978d6bc70811e95e6da5afd06ec7a2e27e Mon Sep 17 00:00:00 2001
From: Luke Shumaker
<%= f.text_field :winner_id %>
-
- <%= f.text_area :remote_id %>
-
- <%= f.number_field :submitted_peer_evaluations %>
- Status
Tournament stage
Winner
- Remote
- Submitted peer evaluations
@@ -20,8 +18,6 @@
<%= match.status %>
<%= match.tournament_stage %>
<%= match.winner %>
- <%= match.remote_id %>
- <%= match.submitted_peer_evaluations %>
<%= link_to 'Show', match %>
<%= link_to 'Edit', edit_match_path(match) %>
<%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %>
diff --git a/app/views/matches/index.json.jbuilder b/app/views/matches/index.json.jbuilder
index bef149d..d5a97fe 100644
--- a/app/views/matches/index.json.jbuilder
+++ b/app/views/matches/index.json.jbuilder
@@ -1,4 +1,4 @@
json.array!(@matches) do |match|
- json.extract! match, :id, :status, :tournament_stage_id, :winner_id, :remote_id, :submitted_peer_evaluations
+ json.extract! match, :id, :status, :tournament_stage_id, :winner_id
json.url match_url(match, format: :json)
end
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 8384ff2..b47a045 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -15,15 +15,5 @@
<%= @match.winner %>
- Remote: - <%= @match.remote_id %> -
- -- Submitted peer evaluations: - <%= @match.submitted_peer_evaluations %> -
- <%= link_to 'Edit', edit_match_path(@match) %> | <%= link_to 'Back', matches_path %> diff --git a/app/views/matches/show.json.jbuilder b/app/views/matches/show.json.jbuilder index 145f069..dd2cde3 100644 --- a/app/views/matches/show.json.jbuilder +++ b/app/views/matches/show.json.jbuilder @@ -1 +1 @@ -json.extract! @match, :id, :status, :tournament_stage_id, :winner_id, :remote_id, :submitted_peer_evaluations, :created_at, :updated_at +json.extract! @match, :id, :status, :tournament_stage_id, :winner_id, :created_at, :updated_at -- cgit v1.2.3-2-g168b