On Wed, 1 Nov 2006 dblack / wobblini.net wrote:

>> i'm guessing you'd want
>> 
>>  def tracks
>>    return @tracks unless defined? @tracks
>>    t = params[:term]
>>    @tracks =
>>      if t.nil? or t.blank?
>
> nil is considered blank by blank?, so you only need the one test.

just putting my abhorrence of container methods defined on non-containers on
public display ;-)

-a
-- 
my religion is very simple.  my religion is kindness. -- the dalai lama