caching fuer neuigkeiten and bsp

This commit is contained in:
Andreas Stephanides
2015-03-06 16:41:08 +01:00
parent bd3c3a25e1
commit 8bf5583e00
5 changed files with 25 additions and 13 deletions

View File

@@ -82,7 +82,9 @@
</p>
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
<% @lva.beispiele.order(:datum).each do |b| %>
<%= render b%>
<% cache("beispiel_" +b.id.to_s + "_" + b.updated_at.try(:utc).try(:to_s)) do %>
<%= render b%>
<% end %>
<% end %>
</div>
</div>