cache_digests icon indicating copy to clipboard operation
cache_digests copied to clipboard

Expire partial template?

Open anitviec opened this issue 9 years ago • 0 comments

I have two templates as follow:

app/views/projects/show.html.erb

<% cache project do %> All documents <%= render project.documents %> <% end %>

app/views/documents/_document.html.erb

<% cache document do %>
My document: <%= document.name %>
<%= render document.comments %>

<% end %>

When I change html in _document.html.erb, I refresh the page, but it does not update. What should I do so that the view auto update when I change partial template?

Thanks.

anitviec avatar Jan 13 '16 03:01 anitviec