help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST


From: Nicolas Petton
Subject: Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST
Date: Fri, 19 Jun 2009 12:39:55 +0200

Hi Joachim,

Your application is in fact running. You don't have to do anything to
make your application available, as long as it has a path.

The problem you encounter is that your application dispatchs the
request, but return a 404 error, because there is no view method in your
application.

The #index method should be the default view method, but its category
isn't 'views', so it isn't.  This may look a bit odd, but take a look at
Iliad.Application class >> selectorFilter and #defaultSelectorFilter,
you may understand it better.

By default, only methods in the 'views' protocol can be used as view
methods, so the fix here is very simple: 

index [
        <category: 'views'>
        ^[:e |
                e add: UnknownHome new build]
]

If you want, you can supply your own selectorFilter block and override
#dispatchOverride (see #dispatch method comment for more infos).

HTH,

Nico

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

[Prev in Thread] Current Thread [Next in Thread]