Christopher Dicely wrote: > On Thu, May 7, 2009 at 9:31 AM, Tom Ha <tom999 / gmx.net> wrote: >> class Agency < ActiveRecord::Base >> true >> -- >> Posted via http://www.ruby-forum.com/. > > > In the question at the tops and the comment, you alternate between > @agency and @gency -- if this inconsistency exists in the method that > has the instance variable(s) @agency and/or @gency that is calling > this code, that could be part of the source of the problem. i'm sorry, i know the comment says not too, but I have to look for sense in the method, and if i do, it appears that you are essentially asking if there are any agents at all?? if that is the case, why are you simply not writing: def all_agents_done? self.agents.size == 0 end and why do you have this, "if (1 == 1)" condition? this is like asking "if true" -- Posted via http://www.ruby-forum.com/.