X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FBasicCRUD.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2FBasicCRUD.pod;h=d1ec819a12476ee6da7600ad2b5a28c7f21b0760;hb=6395438e94034711cd5cb5f7646f868f045b1776;hp=87ee0860ce29913fe07f6e706f580553bd3bd167;hpb=eb60cd8eed4bac9d15899706924c5c84fb07eab2;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod b/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod index 87ee086..d1ec819 100644 --- a/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod +++ b/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod @@ -461,8 +461,8 @@ new request. As a result, the URL in the browser is updated to match the destination of the redirection URL. To convert the forward used in the previous section to a redirect, -open C and the existing C -method to match: +open C and edit the existing +C method to match: =head2 delete @@ -491,7 +491,8 @@ Restart the development server and point your browser to L. Delete the first copy of "TCPIP_Illustrated_Vol-2", but notice that I. Because the stash is reset on every -request, the C is cleared before it can be displayed. +request (and a redirect involves a second request), the +C is cleared before it can be displayed. =head2 Using C to Pass Query Parameters @@ -499,7 +500,7 @@ request, the C is cleared before it can be displayed. There are several ways to pass information across a redirect. In general, the best option is to use the C technique that we will see in Part 4 of the tutorial; however, here we will pass the -information via the redirect itself. Open +information via query parameters on the redirect itself. Open C and update the existing C method to match the following: @@ -540,17 +541,18 @@ query parameter: =head2 Try the Delete and Redirect With Query Param Logic Restart the development server and point your browser to -L and delete the remaining copy of -"TCPIP_Illustrated_Vol-2". The green "Book deleted" status message +L. Then delete the remaining copy +of "TCPIP_Illustrated_Vol-2". The green "Book deleted" status message should return. B Although this did present an opportunity to show a handy capability of C, it would be much better to use Catalyst's -C feature in this situation. Although less dangerous than -leaving the delete URL in the client's browser, we have still exposed -the status message to the user. With C, this message returns -to its rightful place as a service-side mechanism (we will migrate -this code to C in the next part of the tutorial). +C feature in this situation. Although the technique here is +less dangerous than leaving the delete URL in the client's browser, +we have still exposed the status message to the user. With C, +this message returns to its rightful place as a service-side +mechanism (we will migrate this code to C in the next part +of the tutorial). =head1 AUTHOR