On 03/18/2010 08:37 AM, Elena Bobrova wrote: > hmm... > This rule in dispatch.conf > > {dynamic, "^/item/show/(?<id>[0-9]+)$", {browser, show_item}}. > > does not work for me for "/item/show/1". > > You can try this one: > {dynamic, "^/item/show/([0-9]+)$", {browser, show_item}}. You might want to keep that "id", since it could be extremely helpful. In your controller, you'll be able to refer easily to that parameter by name, instead of scanning the list of all available arguments.
Cheers, Roberto Aloi -- University of Kent - Erlang Solutions Ltd. Twitter: @prof3ta Blog: http://aloiroberto.wordpress.com --------------------------------------------------- --------------------------------------------------- WE'VE CHANGED NAMES! Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD. www.erlang-solutions.com ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Erlangweb-users mailing list Erlangweb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/erlangweb-users http://www.erlang-web.org/