Christopher D. wrote:
On Thu, May 7, 2009 at 9:31 AM, Tom Ha email@example.com 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
self.agents.size == 0
and why do you have this, “if (1 == 1)” condition? this is like asking