Array of object using ruby

I have an array of object and I want to sparte the value of array to new field .
this my array of object . I tried to use ruby but no luck unfortunately .

students = [ 
             {id:"id1",name:"name1",age:"age1"}, 
             {id:"id2",name:"name2",age:"age2"},
             {id:"id3",name:"name3",age:"age3"}
           ]

and the new field that value should be like this :

student 1 : id1:name1
student 2 :id2:name2
student3: id3:name3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.