Module: ContentsHelper

Defined in:
app/helpers/contents_helper.rb

Instance Method Summary (collapse)

Instance Method Details



9
10
11
12
# File 'app/helpers/contents_helper.rb', line 9

def content_link(content)
  return nil if content.nil?
  link_to((content).html_safe, content)
end

- (Object) contents_search_form



14
15
16
# File 'app/helpers/contents_helper.rb', line 14

def contents_search_form
  render('/contents/quick_search_form')
end

- (Object) taxon_works_content_tag(content)

Note disambiguation from Rails' content_tag()



4
5
6
7
# File 'app/helpers/contents_helper.rb', line 4

def (content)
  return nil if content.nil?
  content.text
end