app/helpers/application_helper.rb
##
# ====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 difficulty_levels(conference)
    all = conference.program.difficulty_levels.map {|t| t.title}
    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 difficulty_levels ( conference ) all = conference . program . difficulty_levels . map { | t | t . title } 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
<not_specific>