mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Removed cache for wrestlers show because it will never update. Removed cache for school show because buttons requiring permissions were showing
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
<% end %>
|
||||
<br>
|
||||
<br>
|
||||
<% cache ["schools", @school] do %>
|
||||
<table class="table table-striped table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -64,7 +63,6 @@
|
||||
Yes
|
||||
<% end %></td>
|
||||
<td><%= wrestler.nextMatchBoutNumber %> <%= wrestler.nextMatchMatName %></td>
|
||||
<% end %>
|
||||
<td>
|
||||
<%= link_to 'Show', wrestler , :class=>"btn btn-default btn-sm" %>
|
||||
<% if can? :manage, wrestler.school %>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<% 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>
|
||||
@@ -45,4 +44,3 @@
|
||||
<% @wrestler.deductedPoints.each do |w| %>
|
||||
<div> Deducted points: <%= w.points %></div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user