Large dataset with no primary key, how do i group by efficiently?

I’m using Ransack and will_paginate on an Oracle view to fetch records
generate an array of hashes for DataTables.

@users =[:q])[:page]).per_page(params[:per_page])

There’s no primary key so my display currently looks like:

John | Doe | 123

John | Doe | 456

Jane | Doe | 123

Ideally, I’d like to be display it like this:

John | Doe | 123, 456

Jane | Doe | 123

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs