Module: ArticlesHelper
- Defined in:
- app/helpers/articles_helper.rb
Instance Method Summary collapse
Instance Method Details
#tag_links(article) ⇒ Object
2 3 4 5 6 7 |
# File 'app/helpers/articles_helper.rb', line 2 def tag_links(article) tag_arr = article..map do |tag| link_to tag.display_name, tag.permalink_url(nil, true), rel: 'tag' end safe_join(tag_arr.sort, ', ') end |