You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
<% 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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
<% 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.
The text was updated successfully, but these errors were encountered: