add if in submitted <%= time_ago_in_words(post.created_at) %> ago by <%= post.user.name if post.user %><br/>