From: Paul Roche Date: 2010-11-14T00:29:01+09:00 Subject: an each/block problem Hi, I want to take the value from an each method and place it in a function call called borrowed, that runs an evaluation on the value 'bor'. It's plain to see that 'bor' is undefined outside the block. Is there a way around this? In simple terms I want to get the value of a certain attribute for each user and run that value in a function out = User.find(:all) out.each {|bor| bor.books_borrowed} borrowed.call(bor) -- Posted via http://www.ruby-forum.com/.