[Rails] Caching
For some reason the caching files are not showing on my production website and I see the file in public/cache directory but it is not rendering on my site.
Any ideas as to why this is occuring. Here is the section cache statement.
Thanks
<% cache('athletes_list') do %>
<!-- This section is after yield it is the sidebar -->
</div>
</div>
<div class="span5">
<div class="hero-unit" style="background-color: #CC66CC">
<h5>Athletes On Twitter</h5>
<table>
<%@athletes.each do | athlete |%>
<tr>
<td>
<img width="30px;"class="article_image" title="<%=athlete.first_name%><%=athlete.last_name%>" src="<%=athlete.profile_image_url if !athlete.blank?%>"></div>
</td>
<td>
<%=link_to "#{athlete.first_name} #{athlete.last_name}", profile_athlete_url(athlete) %>
</td>
</tr>
<% end %>
</table>
</div>
<% end %>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/tk7Mo2spzWYJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home