On Mon, Sep 29, 2008 at 7:33 PM, Hugh Sasse <[EMAIL PROTECTED]> wrote:
>
>
> On Mon, 29 Sep 2008, Seth Thomas Rasmussen wrote:
>
>> So, my laptop had a near death experience recently. It has recently
>> been rejuvenated. I went to load up the app I've been working on, and
>> an old problem has reappeared.
>>
>> Line 277 of lib/shoes/setup.rb is raising an error with the message:
>>
>>   undefined method 'contents' for (Shoes::App "Setting up for aglet.rb")
>>
>> I remember I started hacking setup.rb once to get around this.
>> Ultimately, my hacks were not necessary, but I don't really recall
>> what resolved things for me.
>
> Can't see anything in messages I've kept, and Google pleads ignorance
> when fed that message.

So, it's this expression that is causing me problems again:

  @title, @status, @prog, = app.contents[-1].contents

Here is a paste from one of my messages about the first time I had a
problem with this expression: http://gist.github.com/3713

The first time, the problem I was seeing was that app.contents[-1] was
returning nil, so the second contents() call was failing on a nil
object.

Now, it appears that the app object does not respond to contents() at
all for some reason.

-- 
Seth Thomas Rasmussen
http://greatseth.com

Reply via email to