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
signature.asc
Description: Ceci est une partie de message numériquement signée
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
