app/views/news/show.html.erb in spud_blog-1.0.0 vs app/views/news/show.html.erb in spud_blog-1.0.1
- old
+ new
@@ -13,10 +13,10 @@
<% end %>
<%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>
+ <h4>Posted by <%= @post.author.try(: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>