Basically I have 3 fields in the database table and I want to return a an array to represent each row.
sqlite database resultset:
row 1)
name: John
gender: male
email: [email protected]
row 2)
name: Sarah
gender: female
email: [email protected]
Desired format from the above resultset:
[['John',male,'[email protected]'],['Sarah',female,'[email protected]']]
I've tried using User.all.map(&:name) but that only gives me ['John','Sarah']