From: Rafael Kitover Date: Sun, 7 Feb 2010 09:20:28 +0000 (+0000) Subject: no need to set resultset_class with load_namespaces, and a couple other minor changes X-Git-Tag: v5.8005~51 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=61cb69fd002171a4c8a0e6c1188dc3530b918993 no need to set resultset_class with load_namespaces, and a couple other minor changes --- diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index f04e5ed..aaabaaa 100644 --- a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod @@ -414,7 +414,7 @@ following: sub hello :Global { my ( $self, $c ) = @_; - $c->stash->{template} = 'hello.tt'; + $c->stash(template => 'hello.tt'); } This time, instead of doing C<$c-Eresponse-Ebody()>, you are diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index ae57b39..3b95f04 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -308,7 +308,7 @@ and add the following method to the controller: # Set the TT template to use. You will almost always want to do this # in your action methods (action methods respond to user input in # your controllers). - $c->stash->{template} = 'books/list.tt2'; + $c->stash(template => 'books/list.tt2'); } B: See Appendix 1 for tips on removing the leading spaces when @@ -839,7 +839,7 @@ and delete the next 2 lines): # Set the TT template to use. You will almost always want to do this # in your action methods (action methods respond to user input in # your controllers). - $c->stash->{template} = 'books/list.tt2'; + $c->stash(template => 'books/list.tt2'); } B: You may see the C<$c-Emodel('DB::Book')> un-commented @@ -1430,7 +1430,7 @@ has changed): # Set the TT template to use. You will almost always want to do this # in your action methods (actions methods respond to user input in # your controllers). - #$c->stash->{template} = 'books/list.tt2'; + #$c->stash(template => 'books/list.tt2'); } diff --git a/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod b/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod index addf26d..cd3f0c4 100644 --- a/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod +++ b/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod @@ -1110,15 +1110,6 @@ Then open C and enter the following: 1; -Then we need to tell the Result Class to to treat this as a ResultSet -Class. Open C and add the following -above the "C<1;>" at the bottom of the file: - - # - # Set ResultSet Class - # - __PACKAGE__->resultset_class('MyApp::Schema::ResultSet::Book'); - Then add the following method to the C: =head2 list_recent