In my previous post, I asked how to show the requested URL in a 404 
handler. I had not noticed the use of paramterized modules in this project. 

First my controller:

-module(training_world_controller, [Req]).
-compile(export_all).

%aka 404
lost('GET',[]) ->
    {ok, [ { original_path, Req:path() } ]    }.

Then the template file:

<html>
    <head>
        <title>File not found</title>
    </head>
    <body>
        The requested path {{ original_path }} was not found.
    </body>
</html>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/60244bdb-540e-4bf8-b469-3769c0ca23a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to