update chapter 9 POD
Rafael Kitover [Sun, 7 Feb 2010 13:13:43 +0000 (13:13 +0000)]
lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod
lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormHandler.pod

index 52225af..3419252 100644 (file)
@@ -85,6 +85,11 @@ to use the FormFu base controller class:
 
     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
 
index 06aade6..1298e2b 100644 (file)
@@ -77,6 +77,11 @@ from CPAN:
 
 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
 
@@ -94,6 +99,7 @@ to a form is only a couple of lines of code.
 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 @@ The 'authors' relationship is a 'many-to-many' pseudo-relation, so this field
 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.