I have a collection:
<Vote id: nil, author_uid: 9326214>, <Vote id: nil, author_uid: 5643421>, <Vote id: nil, author_uid: 9753813>
How can I get an array of author_uid values?
Thanks!
answer
Vote.all.pluck(:author_uid)
Ruby on Rails Guide - pluck
answer
a tick mark to the left-side of answer. – Nithin