DEV Community

Discussion on: Pluck single values out of ActiveRecord models or Enumerables

Collapse
 
kgilpin profile image
Kevin Gilpin

If you're a Sequel user, try #get to "pluck" the first matching record in a dataset. For example, Shoe[params[:id]].get(:name).