Created
March 10, 2016 08:42
-
-
Save ZakharDay/faf665c645ba0e03bc3b to your computer and use it in GitHub Desktop.
RoR Hints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find products with longest names | |
Product.all.collect{ |p| p.name }.max_by(&:length) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment