Correctly handling multiple tournaments now, yay!
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
<h1>New Map Mash tournament!</h1>
|
||||
|
||||
<% form_for(@mash_tournament) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Start' %>
|
||||
</p>
|
||||
<% end %>
|
9
rails/map-mash/app/views/mash_tournaments/new.html.haml
Normal file
9
rails/map-mash/app/views/mash_tournaments/new.html.haml
Normal file
@@ -0,0 +1,9 @@
|
||||
%h1 New Map Mash tournament!
|
||||
|
||||
- form_for(@mash_tournament) do |f|
|
||||
= f.error_messages
|
||||
|
||||
= f.label(:total_rounds)
|
||||
= f.select(:total_rounds, total_rounds_options_for_select)
|
||||
%p
|
||||
= f.submit 'Start'
|
@@ -1,5 +1,5 @@
|
||||
%h1
|
||||
You chose
|
||||
Tournament #{@mash_tournament.id} Complete! You chose
|
||||
%em #{@mash_tournament.rounds.reverse.first.mashes.first.winner.name}!
|
||||
|
||||
- @mash_tournament.rounds.reverse.each do |round|
|
||||
|
Reference in New Issue
Block a user