On Sat, Nov 13, 2010 at 9:33 AM, Paul Roche <prpaulroche / gmail.com> wrote:

> Thanks for that. I am arranging to take 2 parameters...
>
> users =3D User.find(:all)
> =A0users.each {|namex, user| nameb.call(namex.name)
> borrowed.call(user.books_borrowed) }

I can't even begin to guess what you think should happen here -- what
in the heck is "namex"? :-)

What I was implying was that your 'borrowed' proc take 2 arguments,
e.g. borrowed.call(user.name, user.books_borrowed) if you don't want
to pass the entire user object to it.

--=20
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
twitter: @hassan