On Sun, Jun 15, 2014 at 6:52 AM, Walter Lee Davis <wa...@wdstudio.com> wrote:

>> box.cards.pluck(:id)  #  builds a query to fetch *only* the card ids

> What about box.card_ids ? Doesn't that do much the same thing?

Yes, but 'pluck' is more all-purpose :-) -- it enables fetching arbitrary
(and if desired, multiple) fields.

-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBZcjib25yJv8g1-UoYQsbOSVcrQvV_YQbY8YPAgO-kqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to