Module: SequenceRelationshipsHelper
- Defined in:
- app/helpers/sequence_relationships_helper.rb
Instance Method Summary collapse
- #sequence_relationship_link(sequence_relationship) ⇒ Object
- #sequence_relationship_tag(sequence_relationship) ⇒ Object
- #sequence_relationships_search_form ⇒ Object
Instance Method Details
#sequence_relationship_link(sequence_relationship) ⇒ Object
7 8 9 10 |
# File 'app/helpers/sequence_relationships_helper.rb', line 7 def sequence_relationship_link(sequence_relationship) return nil if sequence_relationship.nil? link_to(sequence_relationship_tag(sequence_relationship.).html_safe, sequence_relationship.) end |
#sequence_relationship_tag(sequence_relationship) ⇒ Object
2 3 4 5 |
# File 'app/helpers/sequence_relationships_helper.rb', line 2 def sequence_relationship_tag(sequence_relationship) return nil if sequence_relationship.nil? [sequence_relationship.subject_sequence_id, sequence_relationship.object_sequence_id].join(' : ') end |
#sequence_relationships_search_form ⇒ Object
12 13 14 |
# File 'app/helpers/sequence_relationships_helper.rb', line 12 def sequence_relationships_search_form render('/sequence_relationships/quick_search_form') end |