ruby on rails 3 - How to use Russian Doll caching on same model -


i building rails 3.2 web app. in app using russian doll style of caching.

i fetching projects in table list , records cached. problem when example changing title of record title in list not updated. if association use :touch => true it´s same model.

this how start listing:

<%= render @projects %> 

this projects.html.erb template:

<% cache projects %>   <%= render project %> <% end %> 

this project.html.erb template:

<% cache project %> <tr>  <td><%= link_to project.title.capitalize, admin_project_path(project) %></td>  <td><%= project.reference %></td>  <td><%= show_status project.status %></td> </tr>    <% end %> 

what doing wrong?

thankful input.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -