From: Kennedy Clark Date: Tue, 6 Jan 2009 17:41:18 +0000 (+0000) Subject: Resolve outstanding typo and suggestions in MoreCatalystBasics (RT #41491) X-Git-Tag: v5.8005~223 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=c2dfb562df6c941e38a41b175cbb8629cab2cf62 Resolve outstanding typo and suggestions in MoreCatalystBasics (RT #41491) --- diff --git a/Changes b/Changes index e5c707f..eab5f24 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,8 @@ Revision history for Catalyst-Manual 5.7XXX XXX - Fix typo in Authorization section (RT #42091) + - Fix typo in BasicCRUD (RT #42034) + - Resolve outstanding typo and suggestions in MoreCatalystBasics (RT #41491) - Misc minor updates 5.7016 28 Dec 2008 diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index 7f29eaf..e8ecba9 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -643,7 +643,6 @@ C<[$c-Emodel('DB::Books')-Eall]> and delete the next 2 lines): $c->stash->{template} = 'books/list.tt2'; } - B: You may see the C<$c-Emodel('DB::Book')> un-commented above written as C<$c-Emodel('DB')-Eresultset('Book')>. The two are equivalent. Either way, C<$c-Emodel> returns a @@ -806,7 +805,7 @@ Edit C and change it to match the following: TEMPLATE_EXTENSION => '.tt2', # Set the location for TT files INCLUDE_PATH => [ - MyApp->path_to( 'root/src' ), + MyApp->path_to( 'root', 'src' ), ], # Set to 1 for detailed timer stats in your HTML as comments TIMER => 0, @@ -858,7 +857,7 @@ For the tutorial, open C and input the following: - + @@ -996,7 +995,7 @@ L as its base class (L is only being used by the helper to load the schema once and then create the static files for us) and C only contains a call to the -C method. You will also find that C +C method. You will also find that C contains a C subdirectory, with one file inside this directory for each of the tables in our simple database (C, C, and C). These three files were created @@ -1125,11 +1124,13 @@ Make sure that the application loads correctly and that you see the three dynamically created model class (one for each of the table-specific schema classes we created). -Then hit the URL L and be sure that -the book list is displayed. +Then hit the URL L and be sure that +the book list is displayed via the relationships established above. You +can leave the development server running for the next step if you wish. -You can leave the development server running for the next step if you -wish. +B You will not see the authors yet because the view does not yet +use the new relations. Read on to the next section where we update the +template to do that. =head1 UPDATING THE VIEW @@ -1171,15 +1172,23 @@ enabled, you should also now see five more C