问题内容: I’m extremely new to Ruby and can’t figure how to do this. Basically what I want is to convert this PHP code into Ruby code: $some_array = ['user_id' => 23, 'parent_id' => 24, ...]; $another_array[$some_array['parent_id']]['respuestas'] = $some_array; I’ve been trying to figure out how to do it and have read several questions on this