Module: TopicsHelper
- Defined in:
- app/helpers/topics_helper.rb
Instance Method Summary collapse
Instance Method Details
#topic_list_tag(topics) ⇒ Object
12 13 14 |
# File 'app/helpers/topics_helper.rb', line 12 def topic_list_tag(topics) content_tag(:span, topics.collect{|t| topic_tag(t)}.join('; ').html_safe, class: 'topic_list') end |
#topic_tag(topic) ⇒ Object
3 4 5 6 |
# File 'app/helpers/topics_helper.rb', line 3 def topic_tag(topic) return nil if topic.nil? controlled_vocabulary_term_tag(topic) end |
#topics_search_form ⇒ Object
8 9 10 |
# File 'app/helpers/topics_helper.rb', line 8 def topics_search_form render('/topics/quick_search_form') end |