Method: EffectivePostsHelper#link_to_post_category
- Defined in:
- app/helpers/effective_posts_helper.rb
#link_to_post_category(category, options = {}) ⇒ Object
104 105 106 107 108 109 |
# File 'app/helpers/effective_posts_helper.rb', line 104 def link_to_post_category(category, = {}) category = category.to_s.downcase href = EffectivePosts.use_category_routes ? "/#{category}" : effective_posts.posts_path(category: category.to_s) link_to(category.to_s.titleize, href, ) end |