Instead of writing this
[sourcecode language='ruby']
Profile.find(:all).collect{ |x| x.email }
[/sourcecode]
I could write this using Rails’ Symbol#to_proc
[sourcecode language='ruby']
Profile.find(:all).collect(&:email)
[/sourcecode]
Nice.
Instead of writing this
[sourcecode language='ruby']
Profile.find(:all).collect{ |x| x.email }
[/sourcecode]
I could write this using Rails’ Symbol#to_proc
[sourcecode language='ruby']
Profile.find(:all).collect(&:email)
[/sourcecode]
Nice.
Many thanks for taking this possiblity to talk about this, I feel strongly over it and I make use of researching this subject. When possible, because you gain data, please update this web site with new information. I have found it extremely useful.