There are many different methods that allow mapping an Array to a Hash in Ruby. Enumerable#index_by (any Rails).
確定! 回上一頁