box-o-sand/rails/map-mash/app/views/mash_tournaments/show.html.erb
2012-03-11 12:23:05 -04:00

11 lines
330 B
Plaintext

<ul>
<% @mash_tournament.mashes.each do |mash| %>
<% if mash.map_a.present? && mash.map_b.present? && mash.winner.present? %>
<li><%= mash.map_a.name %> vs. <%= mash.map_b.name %>, winner = <%= mash.winner.name %></li>
<% end %>
<% end %>
</ul>
<%= link_to 'New!', :controller => 'mash_tournaments', :action => 'new' %>