Module: ArticlesHelper

Defined in:
app/helpers/articles_helper.rb

Instance Method Summary collapse

Instance Method Details



4
5
6
7
8
9
# File 'app/helpers/articles_helper.rb', line 4

def tag_links(article)
  tag_arr = article.tags.map do |tag|
    link_to tag.display_name, tag.permalink_url(nil, true), rel: "tag"
  end
  safe_join(tag_arr.sort, ", ")
end