Hello Catalysters, I just started playing with Chained Actions, and so far I have a setup like this:
/myapp/*
/myapp/*/update
/myapp/*/update_do
'update' and 'update_do' being implemented in MyApp::C::Foo::update and
MyApp::C::Foo::update_do, respectively.
Now, in the <form> that gets displayed when calling
/myapp/foo/42/update, I'd like the "action" attribute to point to
/myapp/foo/42/update_do. Unfortunately, if I write:
<form action="[% Catalyst.uri_for('update_do') %]>
I end up with the URI to /myapp/foo/update_do. I could use
$c->req->uri and use it as a base for the relative URL 'update_do', but
please someone tell me that there is a better way?
--
C é d r i c B o u v i e r
signature.asc
Description: Digital signature
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
