Rails Tip #01 ===> Symbol to Proc

in #rails7 years ago

The Task

Get all the users from Database
Get only the names
Get them all in upCase

 User.all.collect(&:name).collect(&:upcase)

Screenshot from 2018-04-20 10-21-04.png

Sort:  

Subhanallah very nice my friend