updated rails controller with separate action for getting all students. adjusted angular factory to reflect change.