From: Paul Roche Date: 2010-11-14T00:46:47+09:00 Subject: Re: an each/block problem Here's more explantion....... I have a table called User which has a books_borrowed column. I'd like to stick to this lambda if at all possible :) borrowed = lambda do |x| if x > 1 then p "you have borrowed too many" else puts "you can borrow more" end end out = User.find(:all) out.each {|bor| bor.books_borrowed} borrowed.call(bor) -- Posted via http://www.ruby-forum.com/.