- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
def get_team_choices_with_index
school_ids = params[:school_id].split(",")
@index = params[:index]
@teams_array = Array.new
school_ids.each do |s|
next if s.eql? "0"
School.find(s).teams.each do |t|
@teams_array << t
end
end
@teams_array.flatten!
@teams_array
end
mr.The 15.07.2014 11:15 # +1