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