From: Kennedy Clark Date: Mon, 25 May 2009 22:51:03 +0000 (+0000) Subject: Initial set of tutorial edits to go along with depluralization update. X-Git-Tag: v5.8005~141 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=fce83e5f2a2da9f9117562d05aec1e161cc3c109;hp=3ab6187c1a123983b6ae29e57f543328ce15755c Initial set of tutorial edits to go along with depluralization update. Add warning about putting too much code into TT template and show how to factor it out in a new section of 04_BasicCRUD.pod Add RenderView dump_info=1 section. Remove TT 2.15 hack out of main flow since not many should run into that any more. --- diff --git a/lib/Catalyst/Manual/Tutorial/01_Intro.pod b/lib/Catalyst/Manual/Tutorial/01_Intro.pod index d5d9b6e..4b2f1fc 100644 --- a/lib/Catalyst/Manual/Tutorial/01_Intro.pod +++ b/lib/Catalyst/Manual/Tutorial/01_Intro.pod @@ -204,6 +204,10 @@ Catalyst::Devel v1.10 DBIx::Class v0.08102 +=item * + +Template Toolkit v2.20 + =item * Catalyst Plugins @@ -387,10 +391,13 @@ Install Catalyst: sudo aptitude -y install sqlite3 libdbd-sqlite3-perl libcatalyst-perl \ libcatalyst-modules-perl libconfig-general-perl libsql-translator-perl \ libdatetime-perl libdatetime-format-mysql-perl libio-all-perl \ - libperl6-junction-perl libmoosex-emulate-class-accessor-fast-perl + libperl6-junction-perl libmoosex-emulate-class-accessor-fast-perl \ + libdbix-class-timestamp-perl -Let it install (normally about a 30-second operaton) and you are -done. +Let it install (normally about a 30-second operaton) and you are done. +(Note the '\' above. Depending on your environment, you might be able +to cut and paste the text as shown or need to remove the '\' +characters to that the command is all on a single line.) If you are using an image other than the "rescue" ISO, you will also need to run the following command to install additional packages: @@ -598,7 +605,7 @@ B You can run the test cases for the final code through Chapter 8 with the following commands: sudo cpan Catalyst::Model::DBIC::Schema Time::Warp DBICx::TestDatabase \ - DBIx::Class::DynamicDefault DBIx::Class::TimeStamp DBIx::Class::EncodedColumn + DBIx::Class::DynamicDefault DBIx::Class::EncodedColumn wget http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/MyApp_Chapter8.tgz tar zxvf MyApp_Chapter8.tgz cd MyApp diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index 455b945..6d1ab5a 100644 --- a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod @@ -219,7 +219,7 @@ previous step): | / | /index | '-------------------------------------+--------------------------------------' - [info] Hello powered by Catalyst 5.80003 + [info] Hello powered by Catalyst 5.80004 You can connect to your server at http://debian:3000 Point your web browser to L (substituting a diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index 208b02c..d42fa0a 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -189,7 +189,8 @@ your I) and delete the lines with: Then replace it with: # Load plugins - use Catalyst qw/-Debug + use Catalyst qw/ + -Debug ConfigLoader Static::Simple @@ -553,7 +554,7 @@ model working below. If you run into problems getting your application to run correctly, it might be helpful to refer to some of the debugging techniques covered in -the L part of the +the L chapter of the tutorial. @@ -692,8 +693,9 @@ running this command: 'print "$Catalyst::Model::DBIC::Schema::VERSION\n"' 0.23 -(please note that the '\' above is a line continuation marker and -should NOT be included as part of the command) +Please note the '\' above. Depending on your environment, you might +be able to cut and paste the text as shown or need to remove the '\' +character to that the command is all on a single line. If you don't have version 0.23 or higher, please run this command to install it directly from CPAN: @@ -713,7 +715,7 @@ L and automatically build the required files for us: $ script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \ - create=static components=TimeStamp dbi:SQLite:myapp.db + create=static dbi:SQLite:myapp.db exists "/home/me/MyApp/script/../lib/MyApp/Model" exists "/home/me/MyApp/script/../t" Dumping manual schema for MyApp::Schema to directory /home/me/MyApp/script/../lib ... @@ -721,8 +723,9 @@ automatically build the required files for us: created "/home/me/MyApp/script/../lib/MyApp/Model/DB.pm" created "/home/me/MyApp/script/../t/model_DB.t" -(please note that the '\' above is a line continuation marker and -should NOT be included as part of the command) +Please note the '\' above. Depending on your environment, you might +be able to cut and paste the text as shown or need to remove the '\' +character to that the command is all on a single line. The C