Module: GeneAttributesHelper

Defined in:
app/helpers/gene_attributes_helper.rb

Instance Method Summary collapse

Instance Method Details



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

def gene_attribute_link(gene_attribute)
  return nil if gene_attribute.nil?
  link_to(gene_attribute_tag(gene_attribute).html_safe, gene_attribute)
end

#gene_attribute_tag(gene_attribute) ⇒ Object



2
3
4
5
# File 'app/helpers/gene_attributes_helper.rb', line 2

def gene_attribute_tag(gene_attribute)
  return nil if gene_attribute.nil?
  gene_attribute.id.to_s
end

#gene_attributes_search_formObject



7
8
9
# File 'app/helpers/gene_attributes_helper.rb', line 7

def gene_attributes_search_form
  render('/gene_attributes/quick_search_form')
end