From 6a785b55dfe996442d10aadce62a4685af1f0897 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sun, 15 Mar 2015 21:15:41 +0100 Subject: [PATCH] cache key fix --- app/views/lvas/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/lvas/show.html.erb b/app/views/lvas/show.html.erb index 444e892..e37013f 100755 --- a/app/views/lvas/show.html.erb +++ b/app/views/lvas/show.html.erb @@ -82,7 +82,7 @@

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