Module: Admin::TagsHelper
- Defined in:
- lib/ecrire/app/helpers/admin/tags_helper.rb
Instance Method Summary collapse
Instance Method Details
#posts_by_tag(posts, status) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/ecrire/app/helpers/admin/tags_helper.rb', line 3 def posts_by_tag(posts, status) str = "#{posts.count} #{status} post" if posts.count > 1 str << 's' end str end |