💡 TIL: pick is the single-value version of pluck in Rails
26th November 2024
Instead of doing
Messages.pluck(:user_id).firstyou can do
Messages.pick(:user_id)
More recent articles
- with_defaults is a better named alias - 28th April 2025
- Bundler can be configured to auto install - 28th April 2025
- React in Rails is gaining momentum with Inertia - 14th April 2025