Skip to content

Instantly share code, notes, and snippets.

@bethsecor
Created January 19, 2016 02:42
Show Gist options
  • Save bethsecor/090aae5af812c2ea08b3 to your computer and use it in GitHub Desktop.
Save bethsecor/090aae5af812c2ea08b3 to your computer and use it in GitHub Desktop.
<h3>Victories: </h3>
<ul>
<% @dojo.winning_fights.each do |fight| %>
<li> <%= fight.winning_combatant.name %> defeated <%= fight.losing_combatant.name %> of <%= fight.losing_dojo.dojo_name %> </li>
<% end %>
</ul>
<h3>Defeats: </h3>
<ul>
<% @dojo.losing_fights.each do |fight| %>
<li> <%= fight.losing_combatant.name %> was defeated by <%= fight.winning_combatant.name %> of <%= fight.winning_dojo.dojo_name %> </li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment