Module SentencesHelper
In: app/helpers/sentences_helper.rb

Methods

Public Instance methods

def sentence_references_column(record)

  return [] if record.sentence.empty?
  display_array(record.sentence_references, @@MAXIMUM_TO_DISPLAY_LIST, :to_label)

end

def sentence_references_column(record)

  return [] if record.sentence.empty?
  display_array(record.sentence_references, @@MAXIMUM_TO_DISPLAY_LIST, :reference_label, record.sentence)

end

[Source]

    # File app/helpers/sentences_helper.rb, line 21
21:   def sentence_references_show_column(record)
22:     return if record.sentence.empty?
23:     render(
24:       :active_scaffold => 'sentence_references', 
25:       :conditions => ['sentence_references.sentence_id = ? OR sentence_references.reference_sentence_id = ?', record.id, record.id]
26:     )
27:   end

[Source]

   # File app/helpers/sentences_helper.rb, line 7
7:   def to_link_column(word)
8:     link_to('Tatoeba', word.to_link)
9:   end

[Validate]