Advertisement · 728 × 90

Posts by hexdevs

Preview
Higher-order procedures in Ruby Exploring higher-order procedures in Ruby through a Scheme's example.

Exploring higher-order procedures in Ruby through a Scheme's example.

hexdevs.com/posts/higher...

4 months ago 0 0 0 1
Ruby on Rails - pick id and title from the first Post using `#pick`:
`Post.where(title: "hexdevs - pluck vs pick").pick(:id, :title)`

Ruby on Rails - pick id and title from the first Post using `#pick`: `Post.where(title: "hexdevs - pluck vs pick").pick(:id, :title)`

Rails tip: need to `#pluck` from the first record? Use `#pick`!

1 year ago 6 1 1 0