Hi !
Thanks a lot for your reply.
However, I think I was asking something a little different. I can understand how you describe the use of before_ function for authorization. My situation is that I have a controller where some actions require authorization while others do not.
I think that the docs and the tutorial suggest that the way this gets handled is that only those actions that have three arguments - such as hello('GET',[],_) invoke the before_ function, while the actions with two arguments such as hello('GET',[]) do not call the before_ function. Does it not work like that?
Look at this code:
hello('GET',[])->
{output,"ok"}.
I have a hello('GET',[]) with two arguments. Why should what I write in before_ even matter at all (since hello has only two arguments and not three)?
And yet when I open the hello action it redirects me to
yahoo.com. This is what confuses me. Is this supposed to happen like this?
Thanks,
Jitin