Rails Tip #01 ===> Symbol to Proc
The Task
Get all the users from Database
Get only the names
Get them all in upCase
User.all.collect(&:name).collect(&:upcase)
The Task
Get all the users from Database
Get only the names
Get them all in upCase
User.all.collect(&:name).collect(&:upcase)
Subhanallah very nice my friend