From 6a71948d0a33c71e3d441ae0d9d7de5f0183eb3b Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 22 Nov 2010 14:18:15 +1300 Subject: We can use scope for this. --- app/views/blog/shared/_post.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb index 2875578..7ca483a 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -4,13 +4,13 @@

<%= link_to post.title, blog_post_url(post) %>

<% if (categories = post.categories).any? %> <% end %> -- cgit v1.2.3