BUSTED: what a mess. trying to get tournament round generation bits working. ack.

This commit is contained in:
Dan Buch
2012-03-10 08:47:47 -05:00
parent f0297f3101
commit 8ec802a2bf
19 changed files with 241 additions and 387 deletions

View File

@@ -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 %>

View File

@@ -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' %>