<div class="gmail_quote">On Tue, Dec 15, 2009 at 10:51 AM, Derek Wueppelmann <span dir="ltr">&lt;<a href="mailto:dwueppel@gmail.com">dwueppel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello all,<br>
<br>
I&#39;m currently using FormBuilder to generate some forms to be used in my<br>
Catalyst Application. However FormBuilder wants to have the same method<br>
handle the submit as well as the display. For certain reasons this isn&#39;t<br>
what I want. So I&#39;m trying to set the action of the form to the correct<br>
path. However FormBuilder only wants to take a path that is rooted for<br>
it&#39;s action argument, for example:<br>
<br>
$form = $self-&gt;formbuilder();<br>
# Works:<br>
$form-&gt;action(&#39;/path/to/method&#39;);<br>
<br>
# Doesn&#39;t work:<br>
$form-&gt;action(&#39;path/to/method&#39;);<br>
# Still doesn&#39;t work:<br>
$form-&gt;action(&quot;<a href="http://example.com/path/to/method" target="_blank">http://example.com/path/to/method</a>&quot;);<br>
<br>
What I really want to be able to use is something like:<br>
<br>
$c-&gt;uri_for($self-&gt;action_for(&#39;method_name&#39;), ...);<br>
<br>
However this returns a url complete with the HTTP. Is it possible to get<br>
something similar that provides just the path (/path/to/method)? The<br>
reason I want to do it this way is that I have some methods that are<br>
submitting to URLS that contain captures.<br><br></blockquote><div><br></div><div>$c-&gt;uri_for returns a URI object.  If you look at the pod there, you&#39;ll see the -&gt;path method which returns exactly what you want.</div>
<div><br></div><div>-J</div></div><br>