On Sep 26, 2008, at 4:56 PM, Dmitrii Dimandt wrote: > Let's say I have a site which hots multiple documents. I'd like to > access them like this: > http://site/document_name
Ok. I've realized there was the catch_all hook which I implemented in my page_controller.erl. However, if I return ewr from catch_all in this case it still throws up the same error: > > then returning ewr from the page controller throws up an error: > http://site/hello/ > > ERROR erlang code crashed: > File: appmod:0 > Reason: {badarg,[{lists,split,[-6,"/hello/"]}, > {erlyweb,get_app_root,1}, > {erlyweb,ewr2,2}, > {erlyweb,is_redirect,2}, > {erlyweb,ewc,2}, > {erlyweb,handle_request,6}, > {yaws_server,deliver_dyn_part,8}, > {yaws_server,aloop,3}]} > Req: {http_request,'GET',{abs_path,"/hello/"},{1,1}} > > > I'm at loss :) Whatever shall i do? :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
