Active Record ninjas,
Jumping between languages I've forgotten how to do this: I'm looking for a concise Rails way to get attributes out of an associated model.
class Team < ActiveRecord::Base
belongs_to :captain, class_name: User
Get array of unique captains who are associated with a team:
What I'd like to do is take that unique list of Captains and grab each one's
I want to do
pluck doesn't work with arrays. I can do this in a couple steps but what's the Rails way?