Rails’ index_by: the easy way to convert an Array to a Hash