BUSTED: what a mess. trying to get tournament round generation bits working. ack.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
<h1>New mash_tournament</h1>
|
||||
<h1>New Map Mash tournament!</h1>
|
||||
|
||||
<% form_for(@mash_tournament) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Create' %>
|
||||
<%= f.submit 'Start' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
@@ -1,3 +1,8 @@
|
||||
<ul>
|
||||
<% @mash_tournament.mashes.each do |mash| %>
|
||||
<li><%= mash.map_a.name %> vs. <%= mash.map_b.name %>, winner = <%= mash.winner.name %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<%= link_to 'Edit', edit_mash_tournament_path(@mash_tournament) %> |
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
||||
|
||||
<%= link_to 'New!', :controller => 'mash_tournaments', :action => 'new' %>
|
||||
|
Reference in New Issue
Block a user