Hi Tomás,
It looks like your `answers` array is an array of arrays, because `best` in the inner loop is an array. If you want to ensure you get just a one-dimensional array, you can use `answers.flatten` at the end, or use `flat_map` while constructing the result for `how_to_get_to_city_center`. Or, if you expected `best` to be a single value, maybe you wanted to do `q.answers.sort_by { |a| a.rates_mean }.first`.
(BTW, this is more of a general ruby question than something Roar-specific. Roar is accurately serializing the property value you’re giving it.)
Rhett
> --
> You received this message because you are subscribed to the Google Groups "Roar" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
roar-talk+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.