Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Expire partial template? #67

Open
anitviec opened this issue Jan 13, 2016 · 0 comments
Open

Expire partial template? #67

anitviec opened this issue Jan 13, 2016 · 0 comments

Comments

@anitviec
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant