1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-15 20:46:57 +00:00

Fixed caching for wrestler and school show pages

This commit is contained in:
2016-01-13 16:05:40 +00:00
parent f2e28505a6
commit 91ba292306
2 changed files with 5 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
<% if can? :manage, @school %>
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
<% end %>
<% cache ["wrestlers", @wrestler] do %>
<br>
<br>
<p>
@@ -44,3 +45,4 @@
<% @wrestler.deductedPoints.each do |w| %>
<div> Deducted points: <%= w.points %></div>
<% end %>
<% end %>