diff options
Diffstat (limited to 'app/views/matches')
-rw-r--r-- | app/views/matches/_form.html.erb | 4 | ||||
-rw-r--r-- | app/views/matches/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/matches/new.html.erb | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/app/views/matches/_form.html.erb b/app/views/matches/_form.html.erb index 67d30da..015aed0 100644 --- a/app/views/matches/_form.html.erb +++ b/app/views/matches/_form.html.erb @@ -8,10 +8,6 @@ <%= f.label :name %><br> <%= f.text_field :name %> </div> - <div class="field"> - <%= f.label :winner_id %><br> - <%= f.text_field :winner_id %> - </div> <div class="actions"> <%= f.submit %> </div> diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index ff42ef1..60df1b5 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -15,7 +15,7 @@ <tbody> <% @tournament.matches.each do |match| %> <tr> - <td><%= match.tournament %></td> + <td><%= match.tournament.id %></td> <td><%= match.name %></td> <td><%= match.winner %></td> <td><%= link_to 'Show', tournament_match_path(@tournament, match) %></td> diff --git a/app/views/matches/new.html.erb b/app/views/matches/new.html.erb index 9ac669f..74e7e3a 100644 --- a/app/views/matches/new.html.erb +++ b/app/views/matches/new.html.erb @@ -1,5 +1,3 @@ <h1>New match</h1> <%= render 'form' %> - - |