Sha256: f330b05cdbff910b05215371a101331fccd0be0c29ce1b971335bee0795309d5
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
module RailsBlogEngine module PostsHelper # Link to the comments section of a post. def link_to_comments_section(post) if post.comments.visible.empty? link_to("Comment", post_permalink_path(post) + "#comments") else link_to(pluralize(post.comments.visible.count, 'comment'), post_permalink_path(post) + "#comments") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems