app/helpers/application_helper.rb
def tracks(conference)
    all = conference.program.tracks.map {|t| t.name}
    first = all[0...-1]
    last = all[-1]
    ts = ''
    if all.length > 1
      ts << first.join(', ')
      ts << " and #{last}"
    else
      ts = all.join
    end
    return ts
  end
##
# ====Returns
# * +String+ -> number of registrations / max allowed registrations
Returns
+String+ -> number of registrations / max allowed registrations
Returns + String + - > number of registrations / max allowed registrations
def tracks(conference)
    all = conference.program.tracks.map {|t| t.name}
    first = all[0...-1]
    last = all[-1]
    ts = ''
    if all.length > 1
      ts << first.join(', ')
      ts << " and #{last}"
    else
      ts = all.join
    end
    return ts
  end
def tracks ( conference ) all = conference . program . tracks . map { | t | t . name } first = all [ 0 ... - 1 ] last = all [ - 1 ] ts = '' if all . length > 1 ts << first . join ( ', ' ) ts << " and #{last}" else ts = all . join end return ts end
Returns
 +String+ -> number of registrations / max allowed registrations
Returns + String + - > number of registrations / max allowed registrations
conference