a bit of trivial defensive templating

cat-town
Dan Buch 13 years ago
parent 0b853163bf
commit dd06034974

@ -1,7 +1,9 @@
<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>

Loading…
Cancel
Save