Thanks man.

Do you know if there is anything more I have to do: I have a trace
statement put in the execution of before_call/2 but I don't see it
being printed in the console and it does not appear to redirect to the
URL I point it to. I don't think it works at all.

I think we should all work towards a wiki for erlyweb so that people
who have done stuff like this sort of stuff before would be able to
document it. But as it stands, even for the simplest things, it seems
you have to go through a lot of effort due to inadequate
documentation.

On Oct 27, 12:04 pm, Dmitrii Dimandt <[EMAIL PROTECTED]> wrote:
> On Oct 26, 2008, at 12:57 PM, nii amon wrote:
>
>
>
> > It appears that I needed to include the before_call/2 in the list of
> > exported functions. That takes care of the previous problem.
>
> > However I have come up with a new problem. So now I have this:
>
> > before_call(is_logged_in, A) ->
> >        io:format("hello. I see you").
>
> > just to test to see if the call would be made right. I end up with
> > this error:
>
> I believe this should be something like this:
>
> -export([before_call/2]).
>
> before_call(is_logged_in, A) ->
>      io:format("hello"),
>      {is_logged_in, A};
> before_call(Func, A) ->
>      {Func, A}.
>
> because we need to return {NewFuncName::atom(), NewParams::[term()]}  
> from this function
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to