<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr"><span>FWIW I highly recommend not using -&gt;forward at all. &nbsp;-&gt;detach has some sort of reasonable use but all the other 'skip around the code' methods almost always end up with a huge mess. &nbsp;</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>That stuff was semi useful prior to chained actions and Moose in controllers (for reusable roles). &nbsp;At this point there is very little I'd use that stuff for.</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, January 29, 2015 9:18 AM, Luca Ferrari &lt;fluca1978@infinito.it&gt; wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">Hi all,<br>I'm surely missing something in my action:<br><br><br>sub edit : Local Form {<br>&nbsp; &nbsp; my ( $self, $c, $id ) = @_;<br>&nbsp; &nbsp; my $form = $self-&gt;formbuilder();<br><br>&nbsp;  ...<br>&nbsp; &nbsp; if ( $is_form_ok ){<br>&nbsp; &nbsp; &nbsp; &nbsp; ...<br>&nbsp; &nbsp; &nbsp; &nbsp; $c-&gt;forward( 'list' );<br>&nbsp;  } else {<br>&nbsp; &nbsp;  ...<br>&nbsp;  }<br>}<br><br><br>The result is that the same page (the form for the edit action) is<br>always rendered, even if all the business logic works fine.<br>detach is not working as I'm expecting too, and&nbsp; only visit appears to<br>render the list action, but without changing the url.<br><br>The development server console provides me the call chain:<br>/workers/edit<br> -&gt; /workers/list<br> /end<br>-&gt; Smickets::View::HTML-&gt;process<br><br>I'm using TTSite as my view.<br>What am I missing?<br><br>Thanks,<br>Luca<br><br>_______________________________________________<br>List: <a ymailto="mailto:Catalyst@lists.scsys.co.uk" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br><br><br></div>  </div> </div>  </div> </div></body></html>