Module: DescriptorsHelper

Defined in:
app/helpers/descriptors_helper.rb

Instance Method Summary (collapse)

Instance Method Details



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

def descriptor_link(descriptor)
  return nil if descriptor.nil?
  link_to(descriptor_tag(descriptor).html_safe, descriptor.metamorphosize)
end

- (Object) descriptor_tag(descriptor)



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

def descriptor_tag(descriptor)
  return nil if descriptor.nil?
  descriptor.name
end

- (Object) descriptors_search_form



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

def descriptors_search_form
  render('/descriptors/quick_search_form')
end