From: Kennedy Clark Date: Sun, 23 Jul 2006 02:43:03 +0000 (+0000) Subject: Fix some typos and clarifications. X-Git-Tag: 5.7099_04~382 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8112f93129b5c90c215ac22135b1172ed710a125 Fix some typos and clarifications. --- diff --git a/lib/Catalyst/Manual/Tutorial/AdvancedCRUD.pod b/lib/Catalyst/Manual/Tutorial/AdvancedCRUD.pod index 6e157e0..05e2f77 100644 --- a/lib/Catalyst/Manual/Tutorial/AdvancedCRUD.pod +++ b/lib/Catalyst/Manual/Tutorial/AdvancedCRUD.pod @@ -70,7 +70,7 @@ L. Here, we will make use of the L to not only ease form creation, but to also provide validation of the submitted -data. The approached used by the part of the tutorial is to slowly +data. The approached used by this part of the tutorial is to slowly incorporate additional L functionality in a step-wise fashion (we start with fairly simple form creation and then move on to more complex and "magical" features such as validation and @@ -191,7 +191,8 @@ following methods: # Set a status message for the user $c->stash->{status_msg} = 'Book created'; - # Use 'hw_create' to redisplay the form + # Use 'hw_create' to redisplay the form. As discussed in + # Part 3, 'detach' is like 'forward', but it does not return $c->detach('hw_create'); } diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index 5919ba9..27464f9 100644 --- a/lib/Catalyst/Manual/Tutorial/Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/Authentication.pod @@ -463,7 +463,7 @@ however, the use of C actions is discouraged because it does not receive path args as with other actions. The recommended practice is to only use C in C. -Another options would be to use something like +Another option would be to use something like C (where the C<...> refers to the login code shown in C above). We are using C here to specifically match the URL C. diff --git a/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod b/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod index 493c868..7b3abfe 100644 --- a/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod +++ b/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod @@ -318,7 +318,7 @@ Part 8. =head1 A SIMPLE DELETE FEATURE -Turning out attention to the delete portion of CRUD, this section +Turning our attention to the delete portion of CRUD, this section illustrates some basic techniques that can be used to remove information from the database. diff --git a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod index 7096679..0a7daa5 100644 --- a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod @@ -114,7 +114,10 @@ following command: Catalyst provides a number of helper scripts that can be used to quickly flesh out the basic structure of your application. All Catalyst projects -begin with the C helper. +begin with the C helper (see L +for more information on helpers). Also note that as of Catalyst 5.7000, +you will not have the helper scripts unless you install both +L and L. In the case of this tutorial, use the Catalyst C script to initialize the framework for an application called C: @@ -693,7 +696,8 @@ to the controller: $c->stash->{books} = [$c->model('MyAppDB::Book')->all]; # Set the TT template to use. You will almost always want to do this - # in your action methods. + # in your action methods (actions methods respond to user input in + # your controllers). $c->stash->{template} = 'books/list.tt2'; } @@ -788,7 +792,7 @@ Catalyst C variable.) B: When troubleshooting TT it can be helpful to enable variable C options. You can do this in a Catalyst environment by adding a C line to the C<__PACKAGE__->config> declaration in -C: +C: __PACKAGE__->config({ CATALYST_VAR => 'Catalyst', @@ -872,9 +876,10 @@ Older Catalyst-related documents often suggest that you add a "private end action" to your application class (C) or Root.pm (C). These examples should be easily converted to L by simply adding -C to the C definition. If end sub is -defined in your application class (C), you should also migrate -it to C. +the attribute C<:ActionClass('RenderView')> to the C +definition. If end sub is defined in your application class +(C), you should also migrate it to +C. =item * diff --git a/lib/Catalyst/Manual/Tutorial/Intro.pod b/lib/Catalyst/Manual/Tutorial/Intro.pod index 7ef2d23..5a77d50 100644 --- a/lib/Catalyst/Manual/Tutorial/Intro.pod +++ b/lib/Catalyst/Manual/Tutorial/Intro.pod @@ -119,7 +119,7 @@ and validation. =back This tutorial makes the learning process its main priority. For -example, the level of comments in the code found here would like be +example, the level of comments in the code found here would likely be considered excessive in a "normal project". Because of their contextual value, this tutorial will generally favor inline comments over a separate discussion in the text. It also deliberately tries to