There are references here to the “first” and “all” methods and what seems like explanations for each, but the explanation refers to the “to_a” method instead of “all”. The text reads,
“As you may have guessed, first returns the first row in the relation. It returns nil if the relation is empty. Similarly, to_a returns all the rows as an array.”