Module: DocumentsHelper

Defined in:
app/helpers/documents_helper.rb

Instance Method Summary (collapse)

Instance Method Details



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

def document_link(document)
  return nil if document.nil?
  link_to(document_tag(document).html_safe, document)
end

- (Object) document_tag(document)



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

def document_tag(document)
  return nil if document.nil?
  document.document_file_file_name
end

- (Object) documents_search_form



13
14
15
# File 'app/helpers/documents_helper.rb', line 13

def documents_search_form
  render('/documents/quick_search_form')
end