DEV Community

Discussion on: What's the best way to render specific items from a Rails collection?

Collapse
 
rpalo profile image
Ryan Palo

Ok, that makes sense. Scopes and pluck are definitely very useful features to know about. Is there any specific reason that you're sticking to using an array rather than converting to a hash? Or just because arrays are simpler to get to?