Module: BiologicalAssociationsHelper

Defined in:
app/helpers/biological_associations_helper.rb

Instance Method Summary (collapse)

Instance Method Details



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

def biological_association_link(biological_association)
  return nil if biological_association.nil?
  link_to(biological_association_tag(biological_association).html_safe, biological_association)
end

- (Object) biological_association_tag(biological_association)



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

def biological_association_tag(biological_association)
  return nil if biological_association.nil?
  object_tag(biological_association.biological_association_subject) + " " + (:span, biological_relationship_tag(biological_association.biological_relationship), class: :notice) + " " + 
    object_tag(biological_association.biological_association_subject) 
end

- (Object) biological_associations_search_form



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

def biological_associations_search_form
  render('/biological_associations/quick_search_form')
end