I am noob in ruby and have an array of hashes as per below. Say my array is @fruits_list:
[
{:key_1=>15, :key_2=>"Apple"},
{:key_1=>16, :key_2 =>"Orange"},
{:key_1=>17, :key_2 =>"Cherry"}
]
What I am looking for is to join the names of the fruits. I did @fruits_list[:key_2].join('|')
and I am getting the error as "TypeError:no implicit conversion of Symbol into Integer"
Please suggest.