[Catalyst-commits] r12831 - Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Sun Feb 7 13:13:44 GMT 2010


Author: caelum
Date: 2010-02-07 13:13:43 +0000 (Sun, 07 Feb 2010)
New Revision: 12831

Modified:
   Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod
   Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormHandler.pod
Log:
update chapter 9 POD

Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod	2010-02-07 13:12:49 UTC (rev 12830)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod	2010-02-07 13:13:43 UTC (rev 12831)
@@ -85,7 +85,12 @@
 
     BEGIN {extends 'Catalyst::Controller::HTML::FormFu'; }
 
+Don't forget to add:
 
+    requires 'Catalyst::Controller::HTML::FormFu';
+
+to your C<Makefile.PL>.
+
 =head2 Add Action to Display and Save the Form
 
 Open C<lib/MyApp/Controller/Books.pm> in your editor and add the

Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormHandler.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormHandler.pod	2010-02-07 13:12:49 UTC (rev 12830)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormHandler.pod	2010-02-07 13:13:43 UTC (rev 12831)
@@ -77,7 +77,12 @@
 
 It will install L<HTML::FormHandler> as a prereq. 
 
+Also add:
 
+    requires 'HTML::FormHandler::Model::DBIC';
+
+to your C<Makefile.PL>.
+
 =head1 HTML::FormHandler FORM CREATION
 
 This section looks at how L<HTML::FormHandler|HTML::FormHandler> can be used to 
@@ -94,6 +99,7 @@
 Create the directory C<lib/MyApp/Form>. Create C<lib/MyApp/Form/Book.pm>:
 
     package MyApp::Form::Book;
+
     use HTML::FormHandler::Moose;
     extends 'HTML::FormHandler::Model::DBIC';
     use namespace::autoclean;
@@ -218,7 +224,8 @@
 can be set to Multiple to allow the selection of multiple authors and make it
 required:
 
-   has_field 'authors' => ( type => 'Multiple', required => 1 );
+   has_field 'authors' => ( type => 'Multiple', label_column => 'last_name',
+                            required => 1 );
 
 Note: FormHandler automatically strips whitespace at the beginning or end of fields.
 If you want some other kind of stripping (or none) you can specify it explicitly.




More information about the Catalyst-commits mailing list