Method: EffectivePostsHelper#badge_to_post_category

Defined in:
app/helpers/effective_posts_helper.rb

#badge_to_post_category(category, options = {}) ⇒ Object



72
73
74
75
# File 'app/helpers/effective_posts_helper.rb', line 72

def (category, options = {})
  category = category.to_s.downcase
  link_to(category.to_s.titleize, (category), title: category.to_s.titleize, class: "badge badge-primary badge-post mb-2 effective-posts-#{category.parameterize}")
end