Module: TopicsHelper

Defined in:
app/helpers/topics_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) topic_list_tag(topics)



12
13
14
# File 'app/helpers/topics_helper.rb', line 12

def topic_list_tag(topics)
  (:span, topics.collect{|t| topic_tag(t)}.join("; "), class: 'topic_list')
end

- (Object) topic_tag(topic)



3
4
5
6
# File 'app/helpers/topics_helper.rb', line 3

def topic_tag(topic)
  return nil if topic.nil?
  topic.name
end

- (Object) topics_search_form



8
9
10
# File 'app/helpers/topics_helper.rb', line 8

def topics_search_form
  render('/topics/quick_search_form')
end