app/views/news/show.html.erb in spud_blog-0.9.11 vs app/views/news/show.html.erb in spud_blog-1.0.0.rc1

- old
+ new

@@ -10,18 +10,20 @@ <% else %> <meta name="keywords" content="<%= @post.meta_keywords %>" /> <% end %> <% end %> -<div class="spud_news_post"> - <h3><%= @post.title %></h3> - <h4>Posted by <%= @post.author.full_name %> on <%= @post.display_date %></h4> - <% if @post.categories.any? %> - <p id="spud_news_post_categories"> - Filed under - <%= raw(@post.categories.collect{ |c| link_to c.name, news_category_path(c.url_name) }.join(', ')) %> - </p> - <% end %> - <div id="spud_news_post_content"> - <%= raw @post.content_processed %> +<%cache ['news/show', @post] do%> + <div class="spud_news_post"> + <h3><%= @post.title %></h3> + <h4>Posted by <%= @post.author.full_name %> on <%= @post.display_date %></h4> + <% if @post.categories.any? %> + <p id="spud_news_post_categories"> + Filed under + <%= raw(@post.categories.collect{ |c| link_to c.name, news_category_path(c.url_name) }.join(', ')) %> + </p> + <% end %> + <div id="spud_news_post_content"> + <%= raw @post.content_processed %> + </div> </div> -</div> +<%end%>