app/views/spud/admin/posts/index.html.erb in spud_blog-1.0.0 vs app/views/spud/admin/posts/index.html.erb in spud_blog-1.0.1
- old
+ new
@@ -24,10 +24,10 @@
<%if !post.visible%>
<span class="badge">Draft</span>
<%end%>
<%end%>
</td>
- <td><%= post.author.full_name %></td>
+ <td><%= post.author.try(:full_name) %></td>
<td><%= link_to(post.published_at.strftime('%m/%d/%Y'), blog_post_path(post.url_name)) %></td>
<td>
Approved: <%=link_to post.visible_comments.count, spud_admin_post_post_comments_path(:post_id => post.id) %>
<br/>
Spam: <%=link_to post.spam_comments.count, spud_admin_post_post_comments_path(:post_id => post.id) %>