app/controllers/student_review_controller.rb
# the method remove_nullteam_topics remove the topics that are not signed up by any teams
the method remove_nullteam_topics remove the topics that are not signed up by any teams
the method remove_nullteam_topics remove the topics that are not signed up by any teams
def remove_nullteam_topics(old_array)
    new_array = []
    for j in (0..(old_array.length - 1)) do
      @signupteam = SignedUpTeam.where(topic_id = old_array[j].id).first
      if (@signupteam != [] and @signupteam.team_id != 0) then
        new_array.insert(-1, old_array[j])
      end
    end
    return new_array
  end
def remove_nullteam_topics ( old_array ) new_array = [ ] for j in ( 0 .. ( old_array . length - 1 ) ) do @signupteam = SignedUpTeam . where ( topic_id = old_array [ j ] . id ) . first if ( @signupteam != [ ] and @signupteam . team_id != 0 ) then new_array . insert ( - 1 , old_array [ j ] ) end end return new_array end
the method remove_nullteam_topics remove the topics that are not signed up by any teams
the method remove_nullteam_topics remove the topics that are not signed up by any teams
old_array